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

Not applicable
02-04-2020
01:24 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 the tutorial located in cadforum.cz about the subject
A very helpful explanation!
Everything worked fine and now I need something similar for the current number of the layout, not the total, I don't 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
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!