@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