HELP_BUTTON IN DCL

Discussion in 'AutoCAD' started by alaint, Feb 2, 2005.

  1. alaint

    alaint Guest

    I CAN'T GET THE HELP BUTTON WORKING WITHIN THE LISP ROUTINE. EVERY TIME I RUN THIS PROGRAM, IT FLASHES A QUITS. WHAT AM I DOING WRONG.

    HERE IS THE CODE..

    DCL CODE

    //
    // Row of buttons at bottom: OK Cancel
    //
    : row {
    fixed_width = true;
    alignment = centered;
    ok_button;
    : spacer { width = 2; }
    cancel_button;
    : spacer { width = 2; }
    help_button;
    }

    LISP CODE

    (setq dcl_id (load_dialog "midwestplot.dcl"))
    (if (not (new_dialog "midwestplot" dcl_id) ) (exit))
    (setq flag 0)
    (action_tile "legalplan" "(setq flag 1)")
    (action_tile "constplanred" "(setq flag 2)")
    (action_tile "constplanmono" "(setq flag 3)")
    (action_tile "constplancolor" "(setq flag 4)")
    (action_tile "constplancrown" "(setq flag 5)")
    (action_tile "wellplanred" "(setq flag 6)")
    (action_tile "wellplanmono" "(setq flag 7)")
    (action_tile "wellplancolor" "(setq flag 8)")
    (action_tile "wellplancrown" "(setq flag 9)")
    (action_tile "iop" "(setq flag 10)")
    (action_tile "noplan" "(setq flag 0)")
    (action_tile "ok" "(done_dialog 0)")
    (action_tile "cancel" "(done_dialog 1)")
    (action_tile "help" "(help "w:/jobs2005/repro.chm")")
    (start_dialog)
    (unload_dialog dcl_id)
    (work)
     
    alaint, Feb 2, 2005
    #1
  2. alaint

    Rudy Tovar Guest

    Quotes in the w:/job...
     
    Rudy Tovar, Feb 2, 2005
    #2
  3. Shouldn't that be the following instead?

    (action_tile "help" "(help \"w:/jobs2005/repro.chm\")")
     
    Daniel J. Altamura, R.A., Feb 3, 2005
    #3
  4. alaint

    alaint Guest

    THANK YOU. IT WORKS.
     
    alaint, Feb 3, 2005
    #4
  5. alaint

    liftedaxis Guest

    you might want to strongly consider not stating paths like that, buried in your code. if you add that path to your acad search path, saves the hassle of searching thousands of lines of code whenever a network drive letter needs to change.

    --J
     
    liftedaxis, Feb 4, 2005
    #5
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.