Reactors..........

Discussion in 'AutoCAD' started by Doug Broad, Dec 19, 2003.

  1. Doug Broad

    Doug Broad Guest

    Callbacks must have arguments. The number of arguments is
    specified in the help files.
     
    Doug Broad, Dec 19, 2003
    #1
  2. Has anyone got any ideas why this is no working ?? I am trying to write a
    drawing timer that activates and deactives with the Drawing Window. But this
    seems to keep return "too many arguements" Any help would be greatly
    appreciated.

    (defun Time-Edit ()
    (Reactor_Remove "Edit-Time")
    (setq Doc-React (vlr-docmanager-reactor "Edit-Time"
    '(:)vlr-documentToBeActivated . Start-Time)
    :)vlr-documentToBeDeactivated . Between-Time)
    )
    )
    (setq Open-React
    (vlr-dwg-reactor "Edit-Time"
    '(:)vlr-endDwgOpen . Start-Time) :)vlr-beginClose . End-Time))
    )
    )
    )
    )

    (defun Start-Time () (alert "Timer Started"))

    (defun Between-Time () (alert "Timer Paused"))

    (defun End-Time () (alert "Timer Stopped"))

    (defun Reactor_Remove (Nam / ReactorsInDwg ReactorGroup ReactorObject)
    (setq ReactorsInDwg (VLR-Reactors))
    (foreach ReactorGroup ReactorsInDwg
    (foreach ReactorObject (cdr ReactorGroup)
    (if (= (VLR-Data ReactorObject) Nam)
    (VLR-Remove ReactorObject)
    )
    )
    )
    )

    (Time-Edit)

    Cheers

    Greg McLandsborough
     
    Greg McLandsborough, Dec 19, 2003
    #2
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.