SelectionInput --> sketchEllipsis, sketchLine

SelectionInput --> sketchEllipsis, sketchLine

MichaelT_123
Advisor Advisor
527 Views
1 Reply
Message 1 of 2

SelectionInput --> sketchEllipsis, sketchLine

MichaelT_123
Advisor
Advisor

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

 

 

 

MichaelT
0 Likes
528 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk

I am not able to reproduce this. Please try to run attached script and let me know if you still notice problem. Thanks.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes