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: 

Access to material and weight via API

1 REPLY 1
SOLVED
Reply
Message 1 of 2
bindlmi
194 Views, 1 Reply

Access to material and weight via API

Hi,
I would like to access the material and weight in my C# addin. Now I have the possibility to do this via the ComponentDefinition:
PartComponentDefinition.Material.Name
WeldmentComponentDefinition.Material.Name

 

Or via the iProperties:
PropertySets.Item(3).Item(10/38).Value
(design tracking properties, material / world material)

 

The same applies to the mass:
ComponentDefinition.MassProperties.Mass
PropertySets.Item(3).Item(39 "Mass").Value

 

What are the differences? Or what is the preferred way?

I believe when accessing the mass via the ComponentDefinition it is updated?

Labels (4)
1 REPLY 1
Message 2 of 2
Michael.Navara
in reply to: bindlmi

Few notes:

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

Post to forums  

Autodesk Design & Make Report