Skip to content

CECOLOR System Variable

Hakan Seven edited this page Nov 8, 2026 · 1 revision

CECOLOR (System Variable)

Sets the color that new objects get.

Type String
Saved in Drawing
Default ByLayer
Since 0.7.0

Values

Value Meaning
ByLayer New objects take the color of their layer.
ByBlock New objects take the color of the block they are inserted with.
1-255 A color index.
red, yellow, green, cyan, blue, magenta, white Color names for indexes 1 to 7.

Notes

  • Type CECOLOR or COLOR to be asked for a new color. Type CECOLOR with a value (for example CECOLOR 1) to set it at once.
  • Pressing Enter without a value reports the current color.
  • The color control on the ribbon shows and sets the same value.

Related

COLOR · CLAYER · CELTYPE · CETRANSPARENCY


System Variables · Command Reference

Clone this wiki locally