BYPASS

Discussion in 'AutoCAD' started by Rad_Cadder, Nov 17, 2004.

  1. Rad_Cadder

    Rad_Cadder Guest

    I am trying to setup a plot log routine and would like my dialog box to load prior to autocad's plot dialog.
    I believe in order to make this load for every plot I have to set up a reactor to avoid this being bypassed should the user type .plot
    I have never used reactors and could use some help!
    I have the following code saved as a lisp routine, is this correct?
    Is the formatting correct?
    Will this work?
    I have a lisp that loads all routines at startup, should the following code be placed there instead?


    (vl-load-com)
    (defun CommandReactor (objReactor lstCommand);
    (cond
    ((= (car lstCommand) "PLOT")
    (C:plog) ;PLOT LOG ROUTINE
    (princ)
    )
    )
    )
    (setq rxnCommand ( vlr-editor-reactor nil '(:)vlr-commandwillstart . CommandReactor))))
    (cleanreactors)

    (defun cleanreactors ( / TMP)
    (vlr-remove-all :vlr-dwg-reactor)
    )
     
    Rad_Cadder, Nov 17, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.