I want to change color of a body or a feature programmatically. I saw posts about faces
but I cannot derive from them how to do this for a body (for example, each Loft in different color). Could you direct me to the appropriate properties of the SldWorks.Body2 or something alse?
For body use the Body2::MaterialPropertyValues2. For feature use the Feature::SetMaterialPropertyValues2.
Artem Taturevych, Application Engineer at Intercad (Australia)
translationXpert – add-in to translate SolidWorks models
myIntercad – an integrated tool for SolidWorks Professionals
LinkedIn SolidWorks API Education Group
Retrieving data ...