Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
askseddon
569 Views, 1 Reply

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

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.

1 REPLY 1
Message 2 of 2

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report