- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Hope you guys doing well,
I am a beginner in Autolisp.
I found a handy simple lisp routine in the forum, about exporting Layouts to separate DWGs (to the model space) which I was looking for; however it send them (separate DWGs) automatically to the same location where the main drawing is located,
My question:
Can someone show me how to include an option which allowed the dialog box pops up?
Appreciation
Here is the lisp routine as-is:
(defun c:test ( / BASE LST OLD_DIA)
(setq old_dia (getvar 'FILEDIA)
base (strcat (getvar 'DWGPREFIX) (vl-filename-base (getvar 'DWGNAME)))
)
(setvar 'FILEDIA 0)
(setq lst (layoutlist))
(foreach l lst
(command "_.ctab"
l
"exportlayout"
(strcat base "-" l)
)
)
(setvar 'FILEDIA old_dia)
(princ)
)
Solved! Go to Solution.