AutoLISP: Print All Layout Tabs

Here is a simple routine that should help plot all of the layout tabs in a drawing.

Note: This routine will print all of the layouts with the same setups -so this is a limitation and shouldn’t be applied to drawings that have layout tabs with various sizes and or orientation (Landscape and Portrait).

Last tested and used with AutoCAD 2011.


;; Prints All Layout Tabs and names the new PDFs with the name of the
;; drawing followed by the layout tab name.
;; Adjust the paper size and .ctb file as needed.
;; The PDFs will be placed in the folder where the drawing resides
(defun c:PA ()
(foreach lay (layoutlist)
  (setvar 'CTab lay)
		"DWG To PDF.pc3"
		"ANSI full bleed A (8.50 x 11.00 Inches)"
		""; Name of file
		"y"      )

About AutoCAD Tips

This blog serves as a knowledge base for myself (and anyone else) so that I can reference tips & tricks that I have learned and also refer others to it as well. I hope that this blog helps you learn at least one tip to make your drafting/design experience better.
This entry was posted in AutoLISP, Printing - Plotting. Bookmark the permalink.

5 Responses to AutoLISP: Print All Layout Tabs

  1. lalit Bisht says:

    Its Very Nice Script its Helps me in my Autocad Training
    Thanks for Sharing it

  2. sreejith says:

    What is the comment for this Lisp?

  3. Ramesh Khatakho says:

    Nice script, help a lot to me. Thank you.

  4. Parthiban says:

    how to put the script in to autocad 2014 please tell me

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s