Display the Select Color dialog box.
This function displays the Color dialog box. This function returns the color number that the user selects from the dialog box or nil when the user clicks the Cancel button.
The function accepts two optional arguments:
Argument | Meaning | Example | Range |
---|---|---|---|
color-number | Color Number | 1 | 0 - 256 |
flag | Flag | nil | nil or true (which is the same as not using the flag) |
NOTES
Examples
Code | Result |
---|---|
(acad_colordlg 1) | Displays dialog box with color 1 (red) selected as the default. |
(acad_colordlg 1 nil) | Displays dialog box with color 1 (red) selected as the default, and the BYBLOCK and BYLAYER buttons are disabled. |
NOTE The first eight color numbers have the following meanings:
Number | Color |
---|---|
1 | Red |
2 | Yellow |
3 | Green |
4 | Cyan (light blue) |
5 | Blue |
6 | Magenta (pink) |
7 | Black |
8 | Gray |
Tell me about...
(help [filename [topic [flag]]])
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |