[CommandMethod("m1")] static public void MSelectPoint() { PromptPointOptions opt = new PromptPointOptions("\nselect a point:"); opt.AllowNone = true; Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; PromptPointResult res = ed.GetPoint(opt); List<oint3d> pnts = new List<oint3d>(); while(res.Status == PromptStatus.OK) { pnts.Add(res.Value); res = ed.GetPoint(opt); } } |