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: 

Change iProperty Material Using VBA

1 REPLY 1
Reply
Message 1 of 2
isocam
2164 Views, 1 Reply

Change iProperty Material Using VBA

Can anybody help?

 

I am trying to change the iProperties "Physical" "Material" using an Inventor VBA macro

 

Can anybody tell me how this can be achieved?

 

For example, say the material is set to "DEFAULT" and I want to change it to "TITANUIM", how can I do this using VBA?

 

Many thanks in advance!!!!

 

IsoCAM

1 REPLY 1
Message 2 of 2
YuhanZhang
in reply to: isocam

If you want to change the material of the document you should use the PartDocument.ComponentDefinition.Material to change it.

 

If you change the property of material, it won't really change the document material, but you can do it with below code:

 

PartDocument.PropertySets(3).Item("Material").Value = "Titanium"

 



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report