Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: ppolcynBNVFN

There are other ways of updating things like styles, materials, appearances, and stuff like that through iLogic & Inventor's API, but the code generally needs to be customized for the different document types that could be active at the time.  For instance, drawings have tons more styles of all sorts than parts & assemblies do, and they need to be accessed and update differently, depending on the document type.  Then only parts really have multiple materials stored within, because assemblies don't contain any of their own original geometry, just the geometry from components you insert into them.  The only materials stored in an assembly, are when the assembly is the weldment type, and there two settings (default virtual component material, and default weld bead material).  Things like materials, appearances, and physical properties are stored in Attribute objects, which are very different objects than Styles.  Styles is an extremely generic term too, because of how many more specific types of styles there are.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)