还有请教一下为什么GetPoint方法是在Autodesk.AutoCAD.EditorInput.Editor中的方法,但却要通过Application.DocumentManager.MdiActiveDocument.Editor这句来调用?不能直接调用吗? 方法为: Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; PromptPointOptions ptOps = new PromptPointOptions("select a point"); PromptPointResult ptRes = ed.GetPoint(ptOps); .... PromptPointResult ptRes = Application.DocumentManager.MdiActiveDocument.Editor.GetPoint(ptOps); 也是可行的。 调用需要类的实例。 |