Your Products have been synced, click here to refresh
This is good. You can use VB in Excel to do all your development/debugging and more importantly, learn the pcdmis type library. You can set breakpoints, watches, step through your code line-by-line. While in debug mode, you can hover the mouse over a variable name and a tooltip will popup showing the contents. It's very powerful - I'd recommend picking up a book on VBA to help learn about the programming interface. Be sure to check out the Object Browser - you can set it to show only the pc-dmis objects and it's a great way to get a feel for the object hierarchy.
You'll need to set a reference to the pc-dmis type library in your project (Tools/References - scroll WAY down to the "p's" and check the pc-dmis library)
Add a module (Insert/Module) and paste your code into the module window (minus the form stuff)
Lastly, change Object declarations to the 'real' object type - like this:
Dim ObjApp as Application Dim ObjPart as PartProgram Dim ObjCmds as Commands Dim ObjCmd as Command Dim ObjDimCmd as DimensionCommand etc...
Once you're all finished debugging and are "production-ready" you'll have to change the declarations back to "Object" for use as pc-dmis script.
I really think that going this route will help you learn/understand the pc-dmis objects.
This is good. You can use VB in Excel to do all your development/debugging and more importantly, learn the pcdmis type library. You can set breakpoints, watches, step through your code line-by-line. While in debug mode, you can hover the mouse over a variable name and a tooltip will popup showing the contents. It's very powerful - I'd recommend picking up a book on VBA to help learn about the programming interface. Be sure to check out the Object Browser - you can set it to show only the pc-dmis objects and it's a great way to get a feel for the object hierarchy.
You'll need to set a reference to the pc-dmis type library in your project (Tools/References - scroll WAY down to the "p's" and check the pc-dmis library)
Add a module (Insert/Module) and paste your code into the module window (minus the form stuff)
Lastly, change Object declarations to the 'real' object type - like this:
Dim ObjApp as Application Dim ObjPart as PartProgram Dim ObjCmds as Commands Dim ObjCmd as Command Dim ObjDimCmd as DimensionCommand etc...
Once you're all finished debugging and are "production-ready" you'll have to change the declarations back to "Object" for use as pc-dmis script.
I really think that going this route will help you learn/understand the pc-dmis objects.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |