Bug Report: MarkingMenuEventHandler is not provided with the right-click context when the click was in a component

Bug Report: MarkingMenuEventHandler is not provided with the right-click context when the click was in a component

OceanHydroAU
Collaborator Collaborator
175 Views
0 Replies
Message 1 of 1

Bug Report: MarkingMenuEventHandler is not provided with the right-click context when the click was in a component

OceanHydroAU
Collaborator
Collaborator

Using your sample code here:

 

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c90ce6a2-c282-11e6-a365-3417ebc87622

 

I can right-click on the "Sketches" browser-entry as follows:-

pic_2024-04-07_12.18.15_492.png

Which correctly prints:-

pic_2024-04-07_12.18.32_493.png

but if the Sketches entry is part of a component:-

pic_2024-04-07_12.18.54_494.png

my handler is never passed the correct argument:

pic_2024-04-07_12.19.09_495.png

 

This is a followup to my other posting on this same topic:  https://forums.autodesk.com/t5/fusion-api-and-scripts/bug-report-how-to-select-which-right-click-lin...

 

The problem applies (at least) to Sketches and Bodies inside components. 

 

In addition to that problem, the handler for the command is also not provided with the context either (as shown above).

 

We need both (the MarkingMenuEventHandler handler needs to know what they right-clicked on, so it knows whether or not to show its menu, and our CommandHandler obviously needs to know what they right-clicked on, so it can run its command on that)

0 Likes
176 Views
0 Replies
Replies (0)