Color control dialog box

Discussion in 'AutoCAD' started by Fraser Atkinson, Jan 23, 2004.

  1. I want to add a button to a dialog box that will start the AutoCAD color
    dialog box. I also need to be able to retrieve the color value selected by
    the user.
    I have created my dialog box using DCL script and am controlling using VLISP
    code. Does anyone know how I can access this and get the returned value
    from inside VLISP? If not possible, I'd be very interested in hearing any
    other possible suggestions.

    Thanks,
    Fraser
     
    Fraser Atkinson, Jan 23, 2004
    #1
  2. Fraser Atkinson

    Jeff Mishler Guest

    Read up on the lisp function "acad_colordlg ". This does what you want.

    Jeff
     
    Jeff Mishler, Jan 24, 2004
    #2
  3. Fraser Atkinson

    ECCAD Guest

    Use 'acad_colordlg', sample sets variable colr to 154, as picked by operator. The 4 initializes dialog value to cyan.

    Command: (setq colr (acad_colordlg 4))
    154

    Command: !colr
    154

    Bob
     
    ECCAD, Jan 24, 2004
    #3
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.