Sheet "##" of Sheets

Sheet "##" of Sheets

lylegrisso
Participant Participant
3,023 Views
22 Replies
Message 1 of 23

Sheet "##" of Sheets

lylegrisso
Participant
Participant

sheet of sheets.JPG

 

I'm trying to figure out how to get a lisp routine to change the ## from the "page" section to auto insert the page number (not "ctab" name) based on it's position in the layout tabs. I'm already using the lisp routine for the total number of pages and that is working great.

0 Likes
Accepted solutions (1)
3,024 Views
22 Replies
Replies (22)
Message 21 of 23

lylegrisso
Participant
Participant

thank you everyone for your help!

0 Likes
Message 22 of 23

pbejse
Mentor
Mentor

@lylegrisso wrote:

pbejse

 

I'm using this lisp to get the total number
(vlr-command-reactor nil '((:vlr-commandWillStart . _totalLayoutsReactor)))


Just as I suspected, the MTEXT entity's value is from a Lisp variable assigned via reactor, but that is odd using MTEXT instead of a default for an attribute  since the intention is to use field value.

 

If you want to continue to use the reactor, I would suggest you include the bit from @ronjonp onto your reactor lisp.

OR  

Add this to the code that is if you are planning to call foo separately and then do away with the reactor. [ you should be aware the kind of reactor you use will check each and every time you use a command.

 

(defun c:foo (/ a bn c e s tg)
  ;; Name of your attribute block
  (setq totalLayouts (itoa (length (layoutlist))))
  (setq bn "BORDER")
...

perhaps look into vlr-lisp-reactor 


HTH

 

0 Likes
Message 23 of 23

Shanky1999
Enthusiast
Enthusiast

What if the ## is not in the block and only Mtext? Like Page 02 of 20 is mtext ?

0 Likes