Just wondering if there would be a better/cleaner or more condensed way to write this code.
I will need to go as far as 30 pages not just the 3 you see below and it could get rather lengthy.
Ideas would be appreciated...thanks
; Routine to copy and past each page in Model Space to Paperspace
; Currently written for up to (30 Pages)
; All named views will be deleted
; All Layouts will be deleted
; User may insert selected Layouts from "PageSetups.dwg"
; XXXXXXXXXXX WARNING: XXXXXXXXX
; Must be done in sequence beginning with page 1
; Each original page in Model space will be deleted
; If a mistake is made an UNDO will be necessary
(defun C:MS2PS_COPY ()
(COMMAND "REGENAUTO" "ON")
(COMMAND "ZOOM" "S" ".8X")
(initdia 1)
(COMMAND "LAYOUT" "TEMPLATE" "PageSetups.dwg")
(COMMAND "LAYOUT" "DELETE" "Layout1")
(COMMAND "COPYBASE" PAUSE "WINDOW" PAUSE PAUSE "")
(COMMAND "LAYOUT" "SET" "01")
(COMMAND "PASTECLIP" "0,0")
(COMMAND "ZOOM" "EXTENTS")
(COMMAND "LAYOUT" "SET" "MODEL")
(COMMAND "ERASE" "PREVIOUS" "")
(COMMAND "COPYBASE" PAUSE "WINDOW" PAUSE PAUSE "")
(COMMAND "LAYOUT" "SET" "02")
(COMMAND "PASTECLIP" "0,0")
(COMMAND "ZOOM" "EXTENTS")
(COMMAND "LAYOUT" "SET" "MODEL")
(COMMAND "ERASE" "PREVIOUS" "")
(COMMAND "COPYBASE" PAUSE "WINDOW" PAUSE PAUSE "")
(COMMAND "LAYOUT" "SET" "03")
(COMMAND "PASTECLIP" "0,0")
(COMMAND "ZOOM" "EXTENTS")
(COMMAND "LAYOUT" "SET" "MODEL")
(COMMAND "ERASE" "PREVIOUS" "")
)