Sorry Lucas;
But can not understand what you are trying to say.
What is the code you posted supposed to do? and by the way it is very easy to get rid of that reactor... is that your point?
Thanks.
;;the same function of your code
;;CODE FOR AUTOLOAD,BY LUCAS
(vl-load-com)
(vlr-pers (vlr-dwg-reactor
NIL
'((:vlr-enddwgopen . BEGIN)) ;ANYNAME
)
)
(defun C:BEGIN_OPEN ()
(alert "This is only a test")
(princ)
)
(alert "This is only a test")
(princ)
Then make a protected separate namespace VLX, have our vlx place in the same folder as our drawing, load the vlx and saved the drawing and that's it....