lisp不为我工作。。
我已经有了一个lisp的出口布局在开放的绘图,但我要找的东西,它在一个完整的文件夹为任何布局存在批量。
- ;;; export all Layouts
- (prompt "\n Written by: Amir Hossein Sattarian ")
- (prompt "(+98)9126049289 ahsattarian2@gmail.com ")
- (prompt "\n Type : LXA ")
- (defun c:lxa ()
- (setq layouts (layoutlist))
- (setq layouts (acad_strlsort layouts))
- (setq ad (getvar "dwgprefix"))
- (setq layfol (strcat ad "Layouts"))
- (vl-mkdir layfol)
- (setq f (strcat layfol "\\lxa.scr"))
- (setq ff (open f "w"))
- (write-line "model" ff)
- (foreach layout layouts
- (write-line "layout set" ff)
- (write-line layout ff)
- (setq adname (strcat (chr 34) layfol "\" layout (chr 34)))
- (write-line "exportlayout" ff)
- (write-line adname ff)
- )
- (write-line "model" ff)
- (close ff)
- (command "script" f)
- )
|