Message 1 of 3
Shift Right Click Menu while using Editor.Drag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
I've got a dimensioning routine that uses the Editor.Drag routine to have the user select a point for the dimension ends. I'm wondering, using my setup, is there a means of enabling the Shift-Right Click snap menu? I'd like for my users to be able to use this menu.
Below is my code used right now.
Thanks!
public PromptStatus StartJig() { Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; // Loop until the user is done for (; ; ) { myPR = (PromptPointResult)ed.Drag(this); if (myPR.Status != PromptStatus.OK) { return PromptStatus.Cancel; } // If the end point has not been set then set it if (double.IsNaN(DimEndPoint.X)) { DimEndPoint = myPR.Value; } else // Else means the end point was set so set the text point { DimTextPoint = myPR.Value; // The text point has been set so we are finished return PromptStatus.OK; } } }