SelectionInput --> sketchEllipsis, sketchLine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi TF360,
I have noticed (and have had spent some time to break into it) a problem when running the script reflected by the template stated below:
####################################################
# Declaration of Input:
_sTest = inputs.addSelectionInput('sTest', 'sTest', 'Select Test')
_sTest.addSelectionFilter('SketchCurves')
_sTest.addSelectionFilter('SketchLines')
#_sTest.addSelectionFilter('Profiles') # OK
_sTest.setSelectionLimits(1)
# and in sTestCommandInputChangedHandler()
if changedInput.id in ['sTest']:
count = changedInput.selectionCount # ==> became count = 1
#########################################################
Everything seems to be OK, but when the selected object is of type
sketchEllipsis or sketchLine, although the selectionCount is correct,
the input field does not change reflecting this count value. A selection of other sketchCurves types works well. The input field's side cancelling cross does not appear also.
Different selection filters (I have not check all) or sketch entities selected combinations to produce results as expected.
Hopefully, the issue is on my side! Fingers cross...
Regards
MichaelT