Current number of layout as a field, not using CTAB

Current number of layout as a field, not using CTAB

Anonymous
Not applicable
654 Views
0 Replies
Message 1 of 1

Current number of layout as a field, not using CTAB

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 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

 

 / 16 ------>  / 16

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

 

Annotation 2020-02-04 140332.png

 

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
655 Views
0 Replies
Replies (0)