public static bool Jig(Point3d pBase, MText mtext, bool autoLine, double lineLength, bool autoRotateText, double textRotation) { Autodesk.AutoCAD.ApplicationServices.Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; Autodesk.AutoCAD.DatabaseServices.Database db = doc.Database; CoordinateJig jigger = new CoordinateJig(mtext, pBase, autoLine, lineLength, autoRotateText, textRotation); PromptResult res = doc.Editor.Drag(jigger); jigger.EraseLine(); if (res.Status == PromptStatus.OK) { return(true); } else { return(false); } }