Bill Tillman Posted January 18, 2019 Posted January 18, 2019 Is there a field similar to CTAB that holds the number of layouts. I'm using a string with fields to number the pages. So far all my searches come up with nothing but references to using Sheet Sets, which I will one day in the future do. Right now the boss says Sheet Sets are a great idea so get it up and running, just don't spend any time on it. LOL! So for now I'm stuck with a different method. Quote
ReMark Posted January 18, 2019 Posted January 18, 2019 Are you inquiring as to the maximum number of tabbed layouts one drawing can have? If so I believe it is 255. Quote
Bill Tillman Posted January 18, 2019 Author Posted January 18, 2019 Thanks ReMark, but I'm actually looking for a field that would contain the number of layout tabs, not the max. The file I'm working on now has 30 layout tabs. I'm using a string in the title block which has the field CTAB followed by a space, the word "of" and then I fill in the text for the quantity of layout tabs, so I end up with "1 of 30", "2 of 30", etc... We're about to add some new sheets to this file so I will just use FIND/REPLACE to fix the number of pages. The actual page # works great by using the CTAB field. I've done this in the past with LISP but this office is way back in the dark ages as for as people understanding what LISP can do this they are not excited about me spending any time on it. LOL! Quote
maratovich Posted January 18, 2019 Posted January 18, 2019 (edited) https://www.cadtutor.net/forum/topic/14546-sheet-x-of-45-automatic-numbering/ Edited January 18, 2019 by maratovich Quote
Bill Tillman Posted January 19, 2019 Author Posted January 19, 2019 Hey thanks again all. A little more reading on this shows it might be possible to use a variable set to (length (layoutlist)) but I can't say I know how to get a variable put into string without using LISP. Quote
tombu Posted January 19, 2019 Posted January 19, 2019 Try Lee Mac's code: http://www.theswamp.org/index.php?topic=52462.0 Piece of cake! Add it to acaddoc.lsp I copied the function for "Sheet # of ##" to create "#" and "##" and may never have to edit either for a sheet again. Quote
BIGAL Posted January 23, 2019 Posted January 23, 2019 Like lee just did a read the total layout number note its -1 as model is included, I did a another lisp that allowed a start number other than say 1 this was for multiple dwg's occasionally we have 2-3 rather than just one. It sort of worked will have another play and post at a later date. Quote
Bill Tillman Posted January 23, 2019 Author Posted January 23, 2019 Again, thanks to all. I'm still working to get the time to setup Sheet Sets but for the moment I'm hacking around with a simpler method. Trouble is this has to be able to be used by others who have zero LISP experience so anything I do has to be totally hand-free, (translation: brain free, no thinking required) LOL! Quote
BIGAL Posted January 24, 2019 Posted January 24, 2019 I Have this function as part of a menu option so its under the menu option, the end user can generally find it. [->LISP3 E-L] [Layout number]^c^c^p(load "Layout re number") Quote
Hanter Thomsom Posted November 16, 2023 Posted November 16, 2023 Lee Mac's code - its Great! Working good 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.