Mimic contextual menu on grip hover
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would like to mimic the contextual menu on polyline grip (Add vertex / Remove vertex) on another type of entity (MPolygon) with an OverRule on Grips (C#)
Solution is to implement a MultiModesGripPE. I've tried but I'm facing a problem.
According to ObjectArx doc, the GripActionType could have 3 values :
Immediate : call only one time MoveGripPointsAt which I should use to Remove Vertex
Command : call an external command
DragOn : call Movegrippointsat and dragging which should be the good solution to add a new vertex (new position during dragging).
With the 2 first option, I obtain a contextual menu which work fine, but with DragOn, AutoCAD doesn't show the contextual menu.
I've tried to follow this discussion http://forums.autodesk.com/t5/objectarx/how-to-handle-ctrl-click-in-move-grip-point/td-p/3725552 and compile project given by Balaji_Ram, but I've same issue : no contextual menu on LowerLeftGrip, only on other 3 not implemented grip actiontype Immediate.
I've tried on MAP 3D 2014, AutoCAD 2014 and AutoCAD 2015 without any difference : no contextual menu with DragOn ActionType.
I use french version of AutoCAD and Map3D on french version of WIndows 7 Pro, perhaps problem is localized with non US product.
Any idea on what I'm doing wrong? Thanks for any help.
Thanks
Olivier Eckmann