Community
Hi,
Anybody have a simple code for Select All Parts is that use the same Appearance in Assembly opened ?
Thks.
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
There is no way to get them directly... you just need to iterate all the parts and check their appearance.
You can use "ComponentOccurrences.AllLeafOccurrences" to easily access the part occurrences if you are dealing with nested sub-assemblies and are only interested in the parts. Then check "ComponentOccurrence.Appearance" property.
Hope that helps,
Philippe.