Color Command line — GstarCAD 2027


Color Command line

GstarCAD 2027 · Command Reference

Commands > C Command > COLOR > Color Command line

Function Description:

Inputting "-color" under command prompt, it display the following prompts:

Enter default object color [True color/Color book] \<BYLAYER>:

Users could input a color in GstarCAD Index (color name or serial number), or a color in True color or color book.

They could also input a color serial number (from 1 to 255) or color name (names of top seven kinds of color). For example, if inputting a GCI serial number as 1 or name as "red", users could specify the red color.

They could also input "bylayer" or "byblock". If inputting "byblock", it will create all new objects by default color (white or black, depends on background color) until group them to a block. When inserting a block, the objects contained in block inherit the current color settings.

Warning: if creating a block with mixture colors, it may lead to complex result when inserting it.

Inputting "bylayer", the color of new object to be the same as the color of the layer when it created. Some detail information about specifying color for layer references to LAYER command.

Relative Glossary:

True Color:
Specify the true color settings by True color. Users could specify a true color by inputting three integers from 0 to 255 and divides by commas.

Color Book:
Select the object color from the loaded color books. Users could input the name of loaded color book. After inputting its name, it prompts to input color names in color book.

Other versions with matching text

2016 · 2017 · 2018 · 2019 · 2020 · 2021 · 2023 · 2024 · 2025 · 2026



Article ID: 4235
Created: September 26, 2026
Last Updated: September 25, 2026
Author: kbadmin

Online URL: https://kb.gstarcad.com.my/article/color-command-line-gstarcad-2027-4235.html