本帖最后由 雪山飞狐_lzh 于 2011-1-11 10:19 编辑
仔细看下这两天的帖子,有这方面的代码:
http://bbs.mjtd.com/thread-85028-1-1.html
- [CommandMethod("t2")]
- public static void Test2()
- {
- Document doc = Application.DocumentManager.MdiActiveDocument;
- Database db = doc.Database;
- Editor ed = doc.Editor;
- var optPt = new PromptPointOptions("\n选择第一点");
- optPt.AllowNone = true;
- var resPt = ed.GetPoint(optPt);
- optPt.Message = "\n选择下一点";
- optPt.UseBasePoint = true;
- while (resPt.Status == PromptStatus.OK)
- {
- optPt.BasePoint = resPt.Value;
- resPt = ed.GetPoint(optPt);
- }
- }
|