-LineColor

Use the -LineColor command to set the color for new entities.

It is the command window variant of the LineColor command.

The following table lists the colors you can set.

0 "ByBlock"
1 "red"
2 "yellow"
3 "green"
4 "cyan"
5 "blue"
6 "magenta"
7 "white"
8 .. 255 Enter a number
256 "ByLayer"
RGB value "RGB:nnn,nnn,nnn"

If you set ByLayer as the color name, new entities assume the color assigned to the layer on which you create them.

If you set ByBlock as the color name, new entities are drawn in black or white (depending on the screen background color). When included in a Block definition, the entities inherit the color setting when you insert them into a drawing.

It is good drawing practice to set LineColor and LineStyle properties to ByLayer.

To set the color for new entities:

  1. Type -LineColor.
  2. Do one of the following:
    • Type the color for new entities.
    • Type the RGB value option.

      RGB value lets you choose from a greater variety of colors by defining the color for new entities using the RGB color model. Type three integer values from 0 to 255 separated by commas for the red, green, and blue values, for example, 127,0,127.

    • Type the Colorbook option.

      Colorbook lets you specify colors from available color books. Type the name of a color book, then type the name of a color in that color book.

      For example, for color book type PANTONE Metallic Coated, and for color type PANTONE 877 C.

      Note: The names for both the color book and the colors are case-sensitive.

Access

Command: -LineColor