AutoCAD2006 .net 开发之一:命令行显示
1
using System;
2
using Autodesk.AutoCAD.ApplicationServices;
3
using Autodesk.AutoCAD.EditorInput;
4
using Autodesk.AutoCAD.Runtime;
5
using Autodesk.AutoCAD.DatabaseServices;
6
using Autodesk.AutoCAD.Geometry;
7![](/Images/OutliningIndicators/None.gif)
8
namespace 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![](/Images/OutliningIndicators/InBlock.gif)
23
}
24
}
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/None.gif)
5
![](/Images/OutliningIndicators/None.gif)
6
![](/Images/OutliningIndicators/None.gif)
7
![](/Images/OutliningIndicators/None.gif)
8
![](/Images/OutliningIndicators/None.gif)
9
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
10
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
11
![](/Images/OutliningIndicators/InBlock.gif)
12
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
13
![](/Images/OutliningIndicators/InBlock.gif)
14
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
15
![](/Images/OutliningIndicators/InBlock.gif)
16
![](/Images/OutliningIndicators/InBlock.gif)
17
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
18
![](/Images/OutliningIndicators/InBlock.gif)
19
![](/Images/OutliningIndicators/InBlock.gif)
20
![](/Images/OutliningIndicators/InBlock.gif)
21
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
22
![](/Images/OutliningIndicators/InBlock.gif)
23
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
24
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)