I got still problem to run a code reactor,I headache with the notifier-object, here my code
(defun c:rcat (/ c1 el1 el2 ht objlst obj_reactor
p1 rad tex txt vevo1 vveo2 vgad vgao vgms)
(vl-load-com)
(setq vgao (vlax-get-acad-object))
(setq vgad (vla-get-activedocument vgao))
(setq vgms (vla-get-modelspace vgad))
(setq p1 (getpoint "\nClick any location for first circle <0,0,0>: "))
(if (= p1 nil)(setq p1 '(0 0 0)))
(setq rad (getdist "\nEnter value radius for circle <5>: "))
(if (= rad nil)(setq rad 5))
(setq c1 (vla-addCircle vgms (vlax-3d-point p1) rad))
(setq el1 (entlast))
(vla-put-color c1 acred)
(setq txt (itoa rad))
(setq ht (* rad 0.2))
(setq tex (vla-addtext vgms txt (vlax-3d-point p1) ht))
(setq el2 (entlast))
(vla-put-color tex acblue)
(setq vevo1 (vlax-ename->vla-object el1))
(setq vevo2 (vlax-ename->vla-object el2))
(setq objlst (list vevo1 vevo2))
(setq obj_reactor (vlr-object-reactor
objlst
nil
'((:vlr-modified . callback))))
)
(defun callback (notifier-object obj_reactor parameter-list
/ obj rad1 tex)
(setq obj1 (car (vlr-owners obj_reactor))) ; #<VLA-OBJECT IAcadText2 08fbc804>
(if
obj1
(setq tex (vlax-get-property notifier-object 'TextString))
) ; if
(setq obj2 (cadr (vlr-owners obj_reactor))); #<VLA-OBJECT IAcadCircle 08fbb024>
(if
obj2
(setq rad1 (vlax-get-property notifier-object 'radius))
) ; if
(vlax-put-property obj2 'radius tex)
(vlax-put-property obj1 'TextString rad1)
) ; defun