我在ACAD2004.lsp中加入(defun s::startup() (command "_vbarun" "test")),启动CAD时,总提示“宏名称(M): test 执行错误”。test.dvb放置于CAD根目录还是support目录中,均是如此。test.dvb 内容如下:
Sub a() MsgBox "this is a test vba" End Sub Sub b() MsgBox "this is b test vba" End Sub
Sub c() MsgBox "this is c test vba" End Sub 不知要如何操作,才能正确实现 |