Hello to all, 1st post here.
I don't know anything about this Lisp unvierse 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-tip11171very helpfull
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
See the link/image for reference:
https://imgur.com/a/W0rANB3the 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!