Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a add-in script that used to work a few months ago. (I have not used it since then)
The script creates a dialog box for selection input.
I have set both _inputSelectTargets and _inputSelectTools to allow multiple selections. setSelectionLimits(0)
However, each one now only allows for 1 selection.
# Create the command dialog
_inputSelectTargets = inputs.addSelectionInput('target', 'Target Bodies', 'Select the Bodies\nThat Will Be Cut')
_inputSelectTargets.addSelectionFilter(adsk.core.SelectionCommandInput.Bodies)
_inputSelectTargets.setSelectionLimits(0)
_inputSelectTools = inputs.addSelectionInput('tool', 'Tool Bodies', 'Select the Bodies\nThat Will Do The Cutting')
_inputSelectTools.addSelectionFilter(adsk.core.SelectionCommandInput.Bodies)
_inputSelectTools.setSelectionLimits(0)
_inputHideTools = inputs.addBoolValueInput('hideTools', 'Keep Tool Bodies?', True)
_inputErrMessage = inputs.addTextBoxCommandInput('errMessage', '', '', 2, True)
_inputErrMessage.isFullWidth = True
Brad Bylls
Solved! Go to Solution.