Message 1 of 9
why does ComponentDefinition became not a member of Document ?

Not applicable
04-05-2007
09:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Recently I have met a seriously problem when I want to get the userparameters in a document
One exception will occasionally happen. The code of getting the userparameters as follow:
Dim oParams As Inventor.Parameters
Dim tcDefinition As Inventor.ComponentDefinition
tcDefinition = oDoc.ComponentDefinition "''Exception: Member not Found
oParams = tcDefinition.Parameters
Dim oUserParams As Inventor.UserParameters
oUserParams = oParams.UserParameters
I use VB2003.Net. This exception happens not usually, but it is serious.
I have payed nearly 2 weeks in this problem. Can someone give me some help?
I have attached a bitmap to show the exception scene
One exception will occasionally happen. The code of getting the userparameters as follow:
Dim oParams As Inventor.Parameters
Dim tcDefinition As Inventor.ComponentDefinition
tcDefinition = oDoc.ComponentDefinition "''Exception: Member not Found
oParams = tcDefinition.Parameters
Dim oUserParams As Inventor.UserParameters
oUserParams = oParams.UserParameters
I use VB2003.Net. This exception happens not usually, but it is serious.
I have payed nearly 2 weeks in this problem. Can someone give me some help?
I have attached a bitmap to show the exception scene