isEnabled property of the SelectionCommandInput objet

isEnabled property of the SelectionCommandInput objet

JeromeBriot
Mentor Mentor
450 Views
1 Reply
Message 1 of 2

isEnabled property of the SelectionCommandInput objet

JeromeBriot
Mentor
Mentor

Hello,

 

The isEnabled property is not supported by the SelectionCommandInput objet.

 

Just add the next lines of code at the end of the MyCommandCreatedHandler class in the Command Inputs API Sample:

 

for i in range(0,inputs.count):
	inputs.item(i).isEnabled = False

isEnabled-SelectionCommandInput.PNG

 

Thank you

0 Likes
451 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk

This is a default behaviour of a Fusion command where a default selection command input remains active. In the sample there is only one selection command input hence it remains active but I agree there is no API exposed which let the add-in writer to specify which is default selection command input in a command.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes