本帖最后由 hnzgs 于 2011-2-23 14:55 编辑
- '测试函数
- Public Shared Sub cs()
- Dim a As New Extents3d(New Point3d(0, 0, 0), New Point3d(100, 100, 0))
- Dim b As New Extents3d(New Point3d(100, 100, 0), New Point3d(200, 200, 0))
- a.AddExtents(b)
- ' 获取当前活动文档的Editor对象,也就是命令行
- Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor
- ' 调用Editor对象的WriteMessage方法在命令行上显示文本
- ed.WriteMessage(a.ToString)
- End Sub
AutoCAD2006下,运行结果为什么会是:((0,0,0),(0,0,0))
|