Current number of layout as a field not using CTAB field

Current number of layout as a field not using CTAB field

Anonymous
Not applicable
680 Views
0 Replies
Message 1 of 1

Current number of layout as a field not using CTAB field

Anonymous
Not applicable

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

 

 / 16 ------>  / 16

/ 16 --------> / 16

 

See the link/image for reference:

 

 https://imgur.com/a/W0rANB3

 

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!

0 Likes
681 Views
0 Replies
Replies (0)