感谢您的快速回复。
由于工作量太大,我无法提前回复帖子。
首先,听了希科兹·布罗的建议,我检查了安装盘上的CHM文件,我以前找不到这些文件。
有一个叫acadauto。chm公司
有关使用Visual Basic for宏的非常有用的信息。
fuccaro,谢谢你的密码。但是我没有LISP知识,所以现在我将坚持使用VB。
以下是我到目前为止学到的:
-
- nObjects = Application.ActiveDocument.ModelSpace.Count 'Gets number of objects.
- Application.ActiveDocument.ModelSpace.Item(i) ' returns the object i in the model space
- 'You can get many of the object properties through this line
- Application.ActiveDocument.ModelSpace.Item(i).GetBoundingBox minExt, maxExt 'gets the max min coordinates of an object.
- Set oAcadPoint = ThisDrawing.ModelSpace.AddPoint(Point) 'creates a point referenced by oAcadPOint
将它们与一些“for”语句一起使用。
这就是我现在所需要的。
再次感谢您的帮助。 |