Share
 
 

About Transient and Persistent Reactors (AutoLISP/ActiveX)

There are two types of reactors that you can create: transient or persistent.

Note: ActiveX support in AutoLISP is limited to Windows only.

Transient reactors are lost when a drawing closes; this is the default reactor mode. Persistent reactors are saved with the drawing and exist when the drawing is next opened.

You can use the following functions to make and remove persistent reactors:

  • vlr-pers - Makes a reactor persistent. For example:
    (vlr-pers circleReactor)
    #<VLR-Object-Reactor>
  • vlr-pers-list - Returns a list of all persistent reactors or all persistent reactors of a specific type in the current drawing. For example:
    (vlr-pers-list)
    (#<VLR-Object-Reactor> #<VLR-Object-Reactor> (#<VLR-Object-Reactor>)
    
    (vlr-pers-list :VLR-DWG-Reactor)
    nil
  • vlr-pers-p - Determines whether a reactor is persistent. For example:
    (vlr-pers-p circleReactor)
    #<VLR-Object-Reactor>
  • vlr-pers-release - Makes a reactor transient. For example:
    (vlr-pers-release circleReactor)
    #<VLR-Object-Reactor>

Was this information helpful?