Color control dialog box

Fraser Atkinson

Usenet Archive
Joined
Jan 23, 2004
Messages
2
Reaction score
0
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
 
Read up on the lisp function "acad_colordlg ". This does what you want.

Jeff
 
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
 

Latest threads

Back
Top