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.
Try looking at this:
I am unable to view this at work, but it may be what you need.
This looks promising as well....
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.
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?
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") )
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register