AutoCad 的VBA代码问题。高手进,高分
展开全部
不多说了,直接上代码:
Sub InsertBlock()
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
Dim insertionPnt(0 To 2) As Double
insertionPnt(0) = 100
insertionPnt(1) = 100
insertionPnt(2) = 0
BlockName = ThisDrawing.path & "\1.dwg"
ThisDrawing.ModelSpace.InsertBlock insertionPnt, BlockName, 1#, 1#, 1#, 0
End Sub
Sub InsertBlock()
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
ThisDrawing.SendCommand "(command)" '取消其他指令,相当于ESC键
Dim insertionPnt(0 To 2) As Double
insertionPnt(0) = 100
insertionPnt(1) = 100
insertionPnt(2) = 0
BlockName = ThisDrawing.path & "\1.dwg"
ThisDrawing.ModelSpace.InsertBlock insertionPnt, BlockName, 1#, 1#, 1#, 0
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询