All,
I have two preliminary routines called CA (CloseAll) and PA (PrintAll) tailored for my needs as following:
CloseAll:
(defun C:CA()
(setvar "TILEMODE" 1)
(command "._ZOOM" "_Extents")
(command "._PURGE" "all" "*" "No")
(command "._PURGE" "all" "*" "No")
(command "._PURGE" "all" "*" "No")
(setvar "TILEMODE" 0)
(command "._MSPACE")
(command "._Grid" "_OFF")
(command "._OVERKILL" "ALL" \\P "DONE")
(command "._PSPACE")
(command "._VPORTS" "L" "ON" "ALL" "")
(command "._ZOOM" "_Extents")
(command "._QSAVE")
(command "._CLOSE")
)
PrintAll:
(defun C:PA()
(foreach x (LAYOUTLIST)
(setvar "CTAB" x)
(command "-PLOT" "" "" "" "" "" "" ""))
)
Above codes work perfect for a single drawing. However, I am stuck on applying them to all of my open drawings (trying to learn LSP gradually ).
Note I don't want to 'browse' for any specific folders or drawings or load some script to do so. Instead I need to apply my code across all open drawings.
The intent is to put them both in my Startup Suite and call them whenever needed.
Attentions are appreciated in advance.