SendCommand
帮助里的内容:
Sub Example_SendCommand()
' This example sends a command to the AutoCAD command line
' of a particular drawing for evaluation
' We will create a Circle in the active drawing and will
' zoom to display the entire circle
ThisDrawing.SendCommand "_Circle" & vbCr & "2,2,0" & vbCr & "4" & vbCr
ThisDrawing.SendCommand "_zoom" & vbCr & "a" & vbCr
' Refresh view
ThisDrawing.Regen acAllViewports
MsgBox "A circle command has been sent to the command line of the current drawing."
End Sub 命令行的内容改为:"(load " & Chr(34) & "sbb.lsp" & Chr(34) & " )" |