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: 

iLogic Pick SelectionFilterEnum

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
tim.mulder
1757 Views, 2 Replies

iLogic Pick SelectionFilterEnum

Hello All,

 

I created an iLogic rule which at the start of it invokes the Pick command within Inventor, here is what I have so far

 

 Pick iLogic.png

 

This function works great for Parts placed within an Assembly.

The problem I have is when I have to Pick a part that is within a placed Assembly inside the Assembly I'm working in, therefore the kAssemblyOccurrenceFilter only selects the Assembly as a whole instead of the wanted part.

 

Is there any way I can include in the code to pick these parts within an Assembly?

 

Many thanks in advance any help would be much appreciated.

 

Kind Regards

 

Tim

2 REPLIES 2
Message 2 of 3
matt_jlt
in reply to: tim.mulder

Try this

 

ThisApplication.CommandManager.Pick(kAssemblyLeafOccurrenceFilter,"Select Beam")

 Regards, Matt.

Message 3 of 3
tim.mulder
in reply to: matt_jlt

Cheers Matt,

 

The kAssemblyLeafOccurrenceFilter did the trick, I knew it would be something easy just couldn't find which member it was.

Working code below

 

New Pick iLogic.png

 

Many thanks for the help

 

Regards

 

Tim

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

Post to forums  

Autodesk Design & Make Report