Marking Menu sample, Swig object unknown

Not applicable
11-20-2017
11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'd like to add a command to the right-click menu of CAM operations (Setups, Folders, Operations). I have the Marking Menu Sample found here: http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c90ce6a2-c282-11e6-a365-3417ebc87622
When I right-click and "print entities" for a CAM operation I get <Swig object of type 'unknown' at ...>. I have tried to "cast" it to a CAM Operation, for example, with camOp = adsk.cam.Operation.cast(e) but the result is None.
How can I get a handle on the selected Setup/Folder/Operation from a marking menu?
Thanks.
/Daryl