Inventor Customization

Inventor Customization

Reply
Active Contributor
askseddon
Posts: 27
Registered: ‎12-07-2006
Message 1 of 2 (326 Views)

Using VB.Net to calculate the cost of the parts in an assembly

326 Views, 1 Replies
10-05-2012 12:54 PM

I am trying to recurse through an assembly, extract the mass of each part, mutiply it by the unit cost of its material and then update the cost property for each part so this can be displayed in the BOM.  I can access the iProperties of the assembly but not the properties of the individual parts.  Any help will be appreciated.

 

Thanks.

ADN Support Specialist
Vladimir.Ananyev
Posts: 531
Registered: ‎08-14-2012
Message 2 of 2 (304 Views)

Re: Using VB.Net to calculate the cost of the parts in an assembly

10-11-2012 07:34 AM in reply to: askseddon

IMHO in your case it is better to use BOM object. From each row you get both reference to Component definition and component quantity. Inventor API help provides the good code sample that illustrates BOM API.  Search for title “Using the BOM APIs API Sample”.

To get only parts you may use BOMView “Parts Only”.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.