Message 1 of 4
VB Inventor References

Not applicable
04-27-2008
07:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am developing an application in VB and find that my references to Inventor Objects are unreliable. In particular oCompDef. I am finding that my compiled code runs fine on my PC but fails to obtain a reference to the active document's component definition on another identical PC!
What strategy would be considered 'best practice' for obtaining the following references in all of my Inventor methods:
oInvApp
oInvAssyDoc
oInvAssyCompDef
oInvAssyCompOccs
Should I declare and set a reference for each object needed in each of my methods or can I declare object variables at the top of my Class and only set these variables when they are Nothing.
Thank you
I am developing an application in VB and find that my references to Inventor Objects are unreliable. In particular oCompDef. I am finding that my compiled code runs fine on my PC but fails to obtain a reference to the active document's component definition on another identical PC!
What strategy would be considered 'best practice' for obtaining the following references in all of my Inventor methods:
oInvApp
oInvAssyDoc
oInvAssyCompDef
oInvAssyCompOccs
Should I declare and set a reference for each object needed in each of my methods or can I declare object variables at the top of my Class and only set these variables when they are Nothing.
Thank you