iLogic Pick SelectionFilterEnum

iLogic Pick SelectionFilterEnum

Anonymous
Not applicable
1,986 Views
2 Replies
Message 1 of 3

iLogic Pick SelectionFilterEnum

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
1,987 Views
2 Replies
Replies (2)
Message 2 of 3

matt_jlt
Collaborator
Collaborator
Accepted solution

Try this

 

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

 Regards, Matt.

Message 3 of 3

Anonymous
Not applicable

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

0 Likes