Restricting selections for SelectionCommandInput

Restricting selections for SelectionCommandInput

nnikbin
Collaborator Collaborator
637 Views
2 Replies
Message 1 of 3

Restricting selections for SelectionCommandInput

nnikbin
Collaborator
Collaborator

Hi,

 

Is there any way for restricting selections for SelectionCommandInput, beyond what "Selection Filters" provide?

 

For example when you select Pattern Bodies in Rectangular Pattern, after selecting the first body, you can only select other bodies whose parent are the same as the parent of the first selected body. Even hovering over the other bodies whose parents are different, does not make them highlighted (please refer to the linked screencast).

 

Is it possible to implement this kind of behavior using Fusion 360 API?

 

Thanks,

Navid

 

 

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

liujac
Alumni
Alumni
Accepted solution

Hi,

 

SelectionEvent may support this requirement.

"The selectionEvent event is a command event but only applies when you have added selectionCommandInput objects to your dialog. This event provides two capabilities; dynamic filtering and adding additional entities to the curent selection.".

 

For more info, please read the SelectionEvent section in http://fusion360.autodesk.com/learning/learning.html?guid=GUID-3922697A-7BF1-4799-9A5B-C8539DF57051.

 

Regards,

Jack

Message 3 of 3

nnikbin
Collaborator
Collaborator

Hi liujac,

 

Thanks for your answer. This is exactly what I was looking for 🙂

 

Regards,

Navid

0 Likes