在VBA中,直接写(command "Stretch" "c" pause pause "")不成立。 例如语句中的"Stretch" 等价写法是chr(34) & "Stretch" & chr(34) 也可以等价写法"""Stretch""" ,"""在CAD命令行中得到的结果为一个双引号" Sub ls() With ThisDrawing .SendCommand "(command " & """Stretch""" & " ""c"" " & "pause pause " & """""" & ")" End With End Sub 程序运行结果等价LISP在CAD命令行中的 (command "Stretch" "c" pause pause "") |