I not never bore with reactor program, sorry.... in this case I have a little problem and can not remove "Automation Error, Object was notifying"
Any one have time to look this code and revised it,I very appreciated for your help.
(defun c:rcc (/ c1 c2 reactor-obj vgms )
(vl-load-com)
(setq vgms (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object))))
(setq c1 (vla-addCircle vgms (vlax-3d-point '(0 0 0)) 5))
(vla-put-color c1 acred)
(setq c2 (vla-addCircle vgms (vlax-3d-point '(10 0 0)) 5))
(vla-put-color c2 acblue)
(setq objlst (list c1 c2))
(setq obj-reactor (vlr-object-reactor
objlst
nil
'((:vlr-modified . change-radius))))
) ; defun
(defun change-radius (notifier-object obj_reactor parameter-list
/ objlist newrad)
(setq objlist (vlr-owners obj-reactor))
(setq newrad (vla-get-radius notifier-object))
(if
(= notifier-object (nth 0 objlist))
(vla-put-radius (nth 1 objlist) (- 10 newrad))
(vla-put-radius (nth 0 objlist) (- 10 newrad))
) ; if
(if
(= notifier-object (nth 1 objlst))
(vla-put-radius (nth 0 objlist) (- 10 newrad))
(vla-put-radius (nth 1 objlist) (- 10 newrad))
) ; if
) ; defun