Message 1 of 4
Current number of layout as a field autocad not using CTAB

Not applicable
02-04-2020
12:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello to all, 1st post here.
I don't know anything about this Lisp universe and knowledge, I managed to put a list code using APPLOAD to add a field for the total number of sheets in my drawing, I used this tutorial:
https://www.cadforum.cz/cadforum_en/total-number-of-layouts-as-a-field-tip11171
very helpfull
Everything worked fine and now I need something similar for the current number of the layout not the total, I dont want to use CTAB field because I use code in every name of my sheets so I need the number of the sheet, by example
X / 16 ------> 1 / 16
X / 16 --------> 2 / 16
See the link/image for reference:
the Lisp code I used for the total number is this one:
;Sets totalLayouts automatically - then use Field: %<\AcVar.17.0 Lisp.totallayouts>% ;CAD Studio, 2016 (defun _totalLayoutsReactor (a r) (setq totalLayouts (length (layoutlist))) ) (vlr-command-reactor nil '((:vlr-commandWillStart . _totalLayoutsReactor)))
Any help would be appreciated, thank you!