AutoCAD 2010/2011/2012 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I am setting up a template and want my page #s to automatically update when i copy a tab. How is this done? I currently have my "Total Sheets" as a field and that works out fine but often need to add/ remove a sheet to/from drawing and would like the page #s to update.
Thank you
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Try looking at this:
http://heidihewett.blogs.com/my_weblog/2006/03/she
I am unable to view this at work, but it may be what you need.
This looks promising as well....
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
We wrote our own routine to do this.
It renumbers the sheets (from 1 to n) in SSM and updates the "TotalSheets" custom field.
Nothing built into AutoCAD to do this.
R.K. McSwain
CADpanacea.com | twitter | Cadalyst Tips
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you for the responses.
Do you have/did you write a field code for this?
We do not use sheet sets in our drawings,so i am looking for a way to automatically update page numbers. As seen in the image, the "TOTAL SHEETS" is a field which i update from properties manager. I would like to find a solution to the "SHEET NO." that if i copy/add or delete a tab this number updates. Possible?
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Misfittoy wrote:
We do not use sheet sets in our drawings.....
I would like to find a solution to the "SHEET NO." that if i copy/add or delete a tab this number updates. Possible?
Sounds like you'll need a reactor that periodically polls the number of layout tabs and updates the field accordingly.
Sorry, I don't know of any existing tool that does this
Short of using a reactor, you could use a lisp function like below, and then point your Field to the lisp variable. Of course you have to execute the lisp statement to update the variable, which in turn will update the field. You could piggy back this code inside a shortcut to a command you use often (such as LINE, ERASE, QSAVE)
; this lisp statement will return the ; number of layouts in the current drawing ; and set the result to a lisp variable named mytotalsheets (setq mytotalsheets (length (layoutlist))) ; example of the piggy back idea (defun C:E () (setq mytotalsheets (length (layoutlist))) (command "._erase") )
R.K. McSwain
CADpanacea.com | twitter | Cadalyst Tips
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Great suggestions here everyone. Please click on 'Accept as Solution' for any posts that will help to solve this for you.

Shawn Niles
Product Support Team Lead
Product Support
Autodesk, Inc.
Re: Auto update page numbers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It is not totally automatic but if you want to standardize your tab names you can pull certain parts of the tab name into a field with diesel. Our tabs begin with SH 1, SH 2, SH 2A etc. The field in the title block has this diesel string: $(substr,$(getvar,ctab), 4,2) which pulls the 4th and 5th characters. You can adjust the numbers to pull whatever part of the tab name you want.

