最近工作确实很忙。
你自己可以在acad200xdoc.lsp中加入以下代码:- (vl-load-com)
- ;;自动加载VBA程序的函数
- (defun AutoVBALoad (cmdname project macro)
- (eval
- (list 'defun
- (read (strcat "C:" cmdname))
- nil
- (list
- 'vl-vbarun
- (strcat
- project
- "!"
- (if macro
- macro
- cmdname
- )
- )
- )
- (princ)
- )
- )
- )
- ;;自动加载VBA程序
- (AutoVBALoad "ao" "alignentity.dvb" "AlignEnt")
- (AutoVBALoad "eo" "alignentity.dvb" "ArrangeEnt")
|