As kpblc correctly states:
vlr-remove/vlr-remove-all to disable the reactors.
vlr-add to re-enable.
However, be sure to acquire the vla-objects representing the reactors prior to disabling them, as otherwise you will have no references to the reactors and consequently won't be able to re-enable them.
Also, if you are working with Object Reactors, be aware that you cannot disable the reactor from within its own callback function and you will also need to ensure that all owners are write-enabled, as otherwise you will not be able to modify the reactor (refer to this thread).
I know these functions.
However I was looking for something that does not remove or add the reactors, but simply something that makes them temporarily inactive.
I explain my context:
I have many objects that have this reactor:
(defun reactor_endedit (notifier-object reactor-object parameter-list
(if (/= (getvar "CMDNAMES") "MOVE")
(progn
....
)
)
)
I put (if (/= (getvar "CMDNAMES") "MOVE") because I want that the reactor does not start when using the MOVE command.
However AutoCAD processes all objects, and when I have to move hundreds of objects this takes too long.
As I have already redefined the MOVE command for other needs, I wanted to put in the command code redefined something that allows you to disable all the reactors and then reactivate them.