Can someone help me figure out how to import multiple Page setups into a drawing. I wrote the following program to remove all the existing layouts and setups then reimport them based on page size. What I am trying to do is if there are multiple pages on our drawings with different sized sheets to import the Page Setups for each size found. Any Ideas??? here's the code so far... ;; *** Turns off Messages *** (setq oldcmdecho (getvar "cmdecho")) (setvar "cmdecho" 0) ;; *** Deletes Page Setups (defun Delset () (vl-load-com) (vlax-for y (vla-get-plotconfigurations (vla-get-activedocument (vlax-get-acad-object))) (if (/= "Model" (vla-get-name y))(vla-delete y)) ) ) (Delset) ;; *** Deletes Page Layouts (defun DelTabs () (vl-load-com) (vlax-for x (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object))) (if (/= "Model" (vla-get-name x)) (vla-delete x)) ) ) (deltabs) ;; *** Calls in current layout tabs based on size *** ;; *** Adds Default Setups and sets 'Print' as default *** (if (setq a (ssget "X" '((0 . "INSERT") (2 . "*-SIZE*")))) (progn (setq b (entget (ssname a 0)) blkname (strcase (cdr (assoc 2 b))) ;'strcase' here... ))) (cond ((eq blkname "B-SIZE") (command "LAYOUT" "T" "BBraun B-Size-2005.dwt" "Plot" "-PSETUPIN" "BBRAUN B-SIZE-2005.DWT" "*" "-PLOT" "N" "Plot" "Print" "Default Windows System Printer.pc3" "N" "Y" "N" ) ) ((eq blkname "C-SIZE") (command "LAYOUT" "T" "BBraun C-Size-2005.dwt" "Plot" "-PSETUPIN" "BBRAUN C-SIZE-2005.DWT" "*" "-PLOT" "N" "Plot" "Print" "Default Windows System Printer.pc3" "N" "Y" "N" ) ) ((eq blkname "C-SIZE-H") (command "LAYOUT" "T" "BBraun C-Size-H-2005.dwt" "Plot" "-PSETUPIN" "BBRAUN C-SIZE-H-2005.DWT" "*" "-PLOT" "N" "Plot" "Print H" "Default Windows System Printer.pc3" "N" "Y" "N" ) ) ((eq blkname "D-SIZE") (command "LAYOUT" "T" "BBraun D-Size-2005.dwt" "Plot" "-PSETUPIN" "BBRAUN D-SIZE-2005.DWT" "*" "-PLOT" "N" "Plot" "Print" "Default Windows System Printer.pc3" "N" "Y" "N" ) ) ((eq blkname "CP-SIZE") (command "LAYOUT" "T" "BBraun CP-Size.dwt" "Plot" "-PSETUPIN" "BBRAUN CP-SIZE.DWT" "*" "-PLOT" "N" "Plot" "Print H" "Default Windows System Printer.pc3" "N" "Y" "N" ) ) ) (vla-Delete(vla-Item(vla-Get-Layouts(vla-Get-ActiveDocument(vlax-Get-Acad-Object)))"Layout1")) ;; *** Turns on messages *** (setvar "cmdecho" oldcmdecho) (princ)