Hide Table of Contents

-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. Type the color for new entities or specify the RGB value option.
  3. 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.

Access

Command: -LineColor



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Command -LineColor
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: 2023 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.