DCL/LSP help

Discussion in 'AutoCAD' started by avw_410, Mar 11, 2005.

  1. avw_410

    avw_410 Guest

    in DCL file:

    : button {
    label = "Get Distance";
    key = "dist";
    action = "(setq dist1 (getdist))";
    }


    in LSP file:

    (action_tile "dist" "(setq dist1 (getdist)))

    What am i doing wrong. I want to click the button and be able to get a dist
    off screen. I canot get it to work. Any help is appriciated.

    TIA
    aw
     
    avw_410, Mar 11, 2005
    #1
  2. When a start_dialog function is called, the dialog box takes complete
    control of the user interface. The getdist function will not automatically
    hide the dialog to allow interactive input in the graphical window. You
    need to manually hide the dialog by using a done_dialog call. See Functions
    for Hiding Dialog Boxes in the AutoCAD Developer Help.

    - Jason
     
    Jason Peterson, Mar 11, 2005
    #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.