Hi all, My first Autolisp routine posted previous.. I improved it and I have learned more about code. The routine required two conditions to run smoothly. 1.. Only work on paper space. 2.. Use command "PSETUPIN " to installed standard plot sizes before use this routine. I think, I resolve first conditions by adding these codes: (setq edt (getvar "tilemode")) (if (= edt 1) (progn (alert "To plot, Please type layout name at command line") (command "layout" "s" Pause) ) ) Now, I looking a way to resolve second condition something like these (setq ded (tblsearch "pagesetupname" "1050C (24X36)")) (if (= ded nil) (command "PSETUPIN" PLOT 1050C STANDARD.dwt " "*")) ) Is any body know how to look for page set up names in the drawing (tblsearch table-name symbol [setnext]) Thanks John