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:-
Which correctly prints:-
but if the Sketches entry is part of a component:-
my handler is never passed the correct argument:
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)
Can't find what you're looking for? Ask the community or share your knowledge.