I´m traversing the tree of an assembly and would like to get the MaterialUserName of each part. So basically get the material of each part in the assembly.
I can´t find any hint anywhere how to do that tho. I tried all kinds of properties and methods, but they all return null or System.Object[].
Anyone an idea how to do that?
Call IComponent2::GetModelDoc to retrieve the pointer to underlined document and if it is a part, read its material. Check this article for hints when working with lightweight components: Get Model Doc from lightweight component using SOLIDWORKS API