面朝大海,春暖华开

focus on scientific computue, 3dgis, spatial database
专注于科学计算、GIS空间分析

 

AutoCAD2006 .net 开发之一:命令行显示

 1using System;
 2using Autodesk.AutoCAD.ApplicationServices;
 3using Autodesk.AutoCAD.EditorInput;
 4using Autodesk.AutoCAD.Runtime;
 5using Autodesk.AutoCAD.DatabaseServices;
 6using Autodesk.AutoCAD.Geometry;
 7
 8namespace ClassLibrary2
 9{
10    /// <summary>
11    /// Class1 的摘要说明。
12    /// </summary>

13    public class Class1
14    {
15        [CommandMethod("HelloWorld")]
16        public void HelloWorld()
17        {
18            Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
19            editor.WriteMessage("I love you");
20            editor.GetPoint();
21        }
 
22
23    }

24}

posted on 2005-08-05 19:52  风过 无痕  阅读(875)  评论(0编辑  收藏  举报

导航

向日葵支付宝收钱码