Inventor General Discussion

Inventor General Discussion

Reply
Member
y_jean
Posts: 4
Registered: ‎05-27-2009
Message 1 of 2 (111 Views)

API, Does C# differ from VB.net?

111 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
Message 2 of 2 (111 Views)

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!
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.