Inventor General Discussion

Inventor General Discussion

Reply
Member
4 Posts
0 Kudos
Registered: ‎05-27-2009
Post 1 of 2

API, Does C# differ from VB.net?

112 Views, 1 Replies
05-27-2009 06:49 AM
In the project, i have imported the same "dll": Autodesk.Inventor.Interop.

In the VB.NET, i can found the "Item" property in the ComponentDefinition.Parameters .

So i use the following code:

Dim params As Parameters

params = partDoc.ComponentDefinition.Parameters

params.Item("length")



But in the c#, i can not found the "Item" property.

Anyone can tell me the reason?

Thanks!
*Duncan Anderson
Post 2 of 2

Re: API, Does C# differ from VB.net?

05-27-2009 08:27 AM in reply to: y_jean
You might want to try posting to


Inventor Customization (VBA and VB)
http://discussion.autodesk.com/forum.jspa?forumID=120
news://discussion.autodesk.com/autodesk.inventor.customization



--
Duncan
"Humour ... is one man shouting gibberish in the face of authority, and
proving by fabricated insanity that nothing could be as mad as what passes
for ordinary living."
(Terence 'Spike' Milligan K.B.E., 1918-2002)
www.autodesk.co.uk/inventorjobs
http://support.microsoft.com/default.aspx/kb/555375



wrote in message news:6190169@discussion.autodesk.com...
In the project, i have imported the same "dll": Autodesk.Inventor.Interop.

In the VB.NET, i can found the "Item" property in the
ComponentDefinition.Parameters .

So i use the following code:

Dim params As Parameters

params = partDoc.ComponentDefinition.Parameters

params.Item("length")



But in the c#, i can not found the "Item" property.

Anyone can tell me the reason?

Thanks!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!