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: 

Select All Parts by Appearance

1 REPLY 1
Reply
Message 1 of 2
Crstiano
187 Views, 1 Reply

Select All Parts by Appearance

Hi,

Anybody have a simple code for Select All Parts is that use the same Appearance in Assembly opened ?

 

Thks.

Cristiano Oliveira
Developer Addins | Consultant CAD/PLM | CAD Manager
https://www.ConsultCAD.com/


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.

1 REPLY 1
Message 2 of 2
philippe.leefsma
in reply to: Crstiano

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.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report