acad_colordlg
(acad_colordlg number [flag])
This function displays the Color selection dialog box.
Arguments
number is an integer in the range 0-256 (0 defaults to ByBlock and 256 defaults to ByLayer), specifying the number to display as the initial color.
flag may have any value. If set to nil, the Match to Layer and Match to Block buttons (applying the ByLayer or ByBlock setting) are disabled.
Return Value
The return value is an integer specifying the color number selected by the user. If the user cancels the dialog box the function returns nil.
To prompt the user to select a color set and set the default color of the dialog box to green, use:
(acad_colordlg 3)