Originally Posted by
ECASAOL350033
is there a way to make it work on multiline attributes?
to be on the cear, Multiline attributes? not MTEXT? or ALSO for MTEXT/TEXT/Multi Line Attributes?
Code:
(Defun c:INC (/ startnumber limit estedobjsectselectionmode
entitydata selectedentitytype )
;;; Add Vl function to avoid issues with Annotative properties ;;;
(initget 7)
(while (not
(progn
(setq startnumber (getstring "\nEnter Start number: "))
(if (and
(numberp (setq limit (read startnumber)))
(<= limit 2000000)
)
limit
(and (princ "\n<Invalid number>") nil)
)
)
)
)
(while (progn
(setq nestedobjsectselectionmode
(car
(nentsel
"\nSelect Attribute/Enter to exit:"
)
)
)
(setq entitydata (entget nestedobjsectselectionmode))
(setq selectedentitytype (cdr (assoc 0 entitydata)))
(wcmatch selectedentitytype "ATTRIB,*TEXT")
)
(vla-put-textstring
(vlax-ename->vla-object nestedobjsectselectionmode)
(itoa limit)
)
(setq limit (+ 1 limit))
)
(princ)
)
(vl-load-com)