Hi,
I am developing a small reactor application, where i don't want the user to delete a certain objects. Even if i lock the layer user can easily un-lock the layer and can delete the object.
For this i am trying to make use of reactor objects. But not sure how :vlr-unerased function will work. Please help me
Following is my code:
(defun c:ret()
(setq dng_obj(car(entsel)))
(setq vlobj(vlax-ename->vla-object dng_obj))
(vlr-object-reactor (list vlobj)
nil '((:vlr-goodbye . dont_delete))
)
);def
(defun dont_delete(notifier reactor arg-list)
(setq new_ent(vlax-vla-object->ename notifier))
;need a function to block the entity from deleting..
);def
Srikanth