Inventor Customization

Inventor Customization

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

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

294 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: 473
Registered: ‎08-14-2012
Message 2 of 2 (272 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

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.