メッセージ1/9
why does ComponentDefinition became not a member of Document ?

適用対象外
04-05-2007
09:37 PM
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
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