public static void tt()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
Editor ed = doc.Editor;
PromptPointOptions opt = new PromptPointOptions("\nselect a point:");
opt.Keywords.Add("Aaaa");
opt.Keywords.Add("Bbbb");
PromptPointResult res = ed.GetPoint(opt);
switch (res.Status)
{
case PromptStatus.Keyword:
ed.WriteMessage("\nyou select a keyword:{0}", res.StringResult);
break;
case PromptStatus.OK:
ed.WriteMessage("\nyou select a point:{0}", res.Value);
break;
}
}
这么麻烦啊,感觉比vb麻烦点,呵
页:
[1]