如果你的桌面不是C:\\Documents and Settings\\Administrator\\桌面\\自己改改- (defun c:test1 (/ ss pt)
- (setvar "cmdecho" 0)
- (prompt "\n选择输出图元:")
- (setq ss (ssget)
- pt (getpoint "\n拾取输出点:")
- )
- (if
- (findfile
- "C:\\Documents and Settings\\Administrator\\桌面\\CAD→Creo.dwg"
- )
- (command
- "-WBLOCK"
- "C:\\Documents and Settings\\Administrator\\桌面\\CAD→Creo.dwg"
- "y"
- ""
- pt
- ss
- ""
- )
- (command
- "-WBLOCK"
- "C:\\Documents and Settings\\Administrator\\桌面\\CAD→Creo.dwg"
- ""
- pt
- ss
- ""
- )
- )
- (command ".oops")
- (setvar "cmdecho" 1)
- (princ)
- )
|