Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I don't know how to take the input from the radiobutton and active the mirror tool
Solved! Go to Solution.
I don't know how to take the input from the radiobutton and active the mirror tool
Solved! Go to Solution.
Hi @mohammadkhader698 ,
In your notify()'s commandExecuteHandler you can get a reference to the RadioButtonGroupCommandInput and the look for its value, like so:
# MIRROR_RADIO_GRP is the name you gave to the RadioButtonCommandInput
# get a reference to the command input
mirrorCmd = adsk.core.RadioButtonGroupCommandInput.cast(eventArgs.command.commandInputs.itemById(MIRROR_RADIO_GRP))
# get the option selected by the user
if mirrorCmd.selectedItem.name == 'Mirror': # <--- name you gave to the listItem's Mirror option
# Do actions related with MIRROR
else:
# Do actions related with NO-MIRROR
Regards,
Jorge