我有一些类似于你的代码,我相信CAB几年前帮助了我,但是当我把它放在子文件夹中并让我的AutoLoad.lsp尝试加载它时,它会出错。但是当我把它作为我的autolaod.lsp放在主文件夹中时,不是问题...我不知道为什么,我讨厌把它放在我的宏文件夹之外,看起来太不合适了。
- (defun PageSetup_AutoLoad (/)
-
- ;=====================================================================================================
- ; Load Plot Page Setup from Template file
- ;=====================================================================================================
- (setq *path* "S:\\VDC Library\\AutoCAD\\User Interface\\Plotters\\Publish\"
- *file* "Publish_Template.dwg"
- *pathfile* (strcat *path* *file*)
- )
-
- (if
- (findfile *pathfile*)
- (progn
-
- (command "._psetupin" *pathfile* "*")
- (while (wcmatch (getvar "cmdnames") "*PSETUPIN*") (command "_y"))
- )
- )
- (princ)
- )(PageSetup_AutoLoad)
|