(and
(setq e (car (entsel "\nSelect text: ")))
(setq o (vlax-ename->vla-object e))
(vla-put-TextString o "")
(progn
(vla-GetBoundingBox o 'll 'ur)
(print ll) (print ur)
)
)
You can't modify the owner of the object reactor within the object reactor callback function for which that object is an owner. This would cause an infinite callback loop since the modification would fire the reactor, evaluating the callback function, triggering the reactor...
However, there is a workaround if you want to modify the owner of an object reactor within its own callback function: disable the object reactor within the object reactor callback function and create a command reactor triggered by the commandended event. Then, within the callback function of the command reactor, modify the owner and re-enable the object reactor, then remove the command reactor. This is the method I use to retain the position of the centerlines in this (http://"http://lee-mac.com/associativecenterlines.html") program.
You can't modify the owner of the object reactor within the object reactor callback function for which that object is an owner. This would cause an infinite callback loop since the modification would fire the reactor, evaluating the callback function, triggering the reactor...