ThisDrawing.SendCommand "(defun C:InsertRM6 ()(vl-vbarun""C:/Program Files/RM6/RM6-Project.dvb!ThisDrawing.RM6Select"")(princ))" & vbCr openMacro = Chr(3) & Chr(3) & "InsertRM6" & Chr(13) Set NewMenuItem = NewMenu.AddMenuItem(NewMenu.Count + 1, "RM6(&R)", openMacro) 谢谢ALIN的指导. 我在VBA中插入了AUTOLISP的语句.可以实现功能, 但运行时有个提示: 命令: InsertRM6 _.-VBARUN 宏名称(M): C:/Program Files/RM6/RM6-Project.dvb!ThisDrawing.RM6Select 执行错误 这该如何解决?谢谢 |