BUG: SelectionCommandInput changed in September release: Can't select multiple sketch curves!

BUG: SelectionCommandInput changed in September release: Can't select multiple sketch curves!

ginavenolia
Contributor Contributor
727 Views
5 Replies
Message 1 of 6

BUG: SelectionCommandInput changed in September release: Can't select multiple sketch curves!

ginavenolia
Contributor
Contributor

I am writing an add-in which uses a SelectionCommandInput to select multiple sketch curves. Before the September release it did just what I wanted it to. However starting with the September release of Fusion, I can only select one sketch curve at a time:

  1. When I invoke my add-in, nothing is selected, as expected
  2. When I click on the first sketch curve, it becomes selected, as expected
  3. When I click on the second sketch curve, it becomes selected, however the first curve becomes deselected

Before the September release, both curves would be selected, as expected and desired.

Initializing the selection command input:

 

 

self.pathInput = command.commandInputs.addSelectionInput('path', 'Path', 'Select one or more sketch curves')
self.pathInput.addSelectionFilter('SketchCurves')
self.pathInput.setSelectionLimits(0, 0)

 

 

I've commented out my selectionEvent and validateInputs handlers, just to be sure it's nothing I'm doing. When the executePreview event comes around, pathInput.selectionCount is never greater than one.

 

What's going on here? Can anyone suggest a workaround?

0 Likes
Accepted solutions (1)
728 Views
5 Replies
Replies (5)
Message 2 of 6

rolandas_vegis
Advocate
Advocate

Our users are reporting same problem after the update with selecting components and faces. This is definitely a new bug.

0 Likes
Message 3 of 6

kandennti
Mentor
Mentor

Hi @ginavenolia @rolandas_vegis .

 

I tried it.

I don't remember how it worked before, but holding down the Ctrl key while clicking allowed multiple selections.

0 Likes
Message 4 of 6

rolandas_vegis
Advocate
Advocate

It worked without Ctrl key and this change does not seem to be documented anywhere.

Message 5 of 6

BrianEkins
Mentor
Mentor
Accepted solution

This is definitely a bug and hopefully can be addressed soon.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 6 of 6

BrianEkins
Mentor
Mentor

It looks like this has been fixed in the latest update.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com