CADDIT CAD CAM CNC Software - download AutoCAD compatible design software progeCAD Alibre T-FLEX and more
CADDIT Website Knowledge Base Search:
CL

progeCAD Help

CR
Welcome to progeCAD
Working with progeCAD
Command Reference
CAD System Variables
Programming progeCAD
Full Index (caution - 400kb)

Further Links:

Download progeCAD
Register progeCAD

Learning

T-FLEX PLM tutorial (PDF)
progeCAD IntelliCAD and AutoCAD training 
CATIA 2D 3D design tutorial
Alibre CAD/CAM basic tutorial

Resources

Educational CAD Software Solutions
Python scripting for DOS and Windows
Other free software downloads
CADDIT CAD CAM Forum Australia
__

(acad_colordlg color-number [flag])


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

    • The color-number argument lets you provide a default color. When clrno is 0, the default is BYBLOCK; when clrno is 256, the default is BYLAYER.
    • When nil, the dialog box disables the BYBLOCK and BYLAYER buttons.

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

(command cmd [arguments] ...)

(getvar sysvar)

(help [filename [topic [flag]]])

(setvar sysvar value)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

CADDIT® is a registered trademark in Australia. All Rights Reserved. Comments concerning the content of this site should be addressed to our webmaster. progeCAD is a trademark of ProgeCAD srl. Autodesk® and AutoCAD® are both registered trademarks or trademarks of a third party, and used only for comparison purposes. All other trademarks, trade names or company names referenced herein are used for identification only and are the property of their respective owners. Legal and Terms of Use. Google. Find us on Google+.