CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3575 

CAD tip CAD tip # 11171:

Question CAD 
 %  platform  category 
Q - question

Total number of layouts as a field.

A - answer AutoCAD does not offer the total number of layouts as a system variable so you cannot easily use automatic text fields of the type "Page X of Y" to your title blocks.

With help of the TotalLayouts reactor you can add this possiblity to your AutoCAD and automate your batch plots.

To compose such automatic text, you will need two text fields - the current page/layout name/number and the total number of layouts (pages). The current layout name can be accessed through the variable CTAB so this field is available in Other > System variable:

We will make the variable for the total number of layouts as an automatically updated LISP variable "totallayouts". This value will be then available in the Field dialog through Other > Lisp variable:

But first you will need to define this variable and make sure it is dynamically updated whenever you add or delete a layout. This can be achieved with this simple LISP code:

The code can be downloaded from www.cadstudio.cz/download. To load and run the code automatically in each DWG drawing session in your AutoCAD, add it to your Startup Suite in APPLOAD - drag the downloaded LSP file (stored in an AutoCAD support folder) onto the briefcase icon in the AppLoad dialog.

Then compose the MText, Field or Attribute using the above mentioned variables.
ACAD
100% *  CAD 
15.11.2016    874x   FAQ  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 9331:What is contextual field and why it is not updated in a block?
Tip 9147:Batch publishing to PDF uses different margins than single prints.
Tip 7585:Plotting a series of drawing frames composed in a DWG drawing (or creating layouts).
Tip 6672:I want to display my drawing the same way it is printed.
Tip 6409:Batch-print multiple layouts in AutoCAD LT 2008.


Back   All CAD Tips All CAD tips&tricks

Which Workplane was this Sketch defined in? « | » Be an expert in saving of drawings.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist