Color of Entities (Lines, Arc, Hatches, Solid Fills, Texts, etc.)

Tips and tricks you want to share with other users. Tutorials, user submitted documentation, etc.

Moderator: andrew

Locked
User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Color of Entities (Lines, Arc, Hatches, Solid Fills, Texts, etc.)

Post by andrew » Tue Oct 22, 2013 8:18 pm

The colors, line types and line weights of all entities are almost always defined by the layer the entity is on.

For example, if an entity is on a layer called 'labels' and the color of that layer is set to 'yellow', all entities on that layer (i.e. all labels) are shown in yellow.

The same is true for hatches. So if you want to create a hatch that represents a wall, you would put it on a layer called 'walls' and make that layer for example gray.

The reason behind all this it that entities with the same functionality are typically shown in the same color to make that functionality visible to the viewer of a drawing. This is a simple floor plan with a couple of examples for typical layer uses:
layers_and_colors.png
layers_and_colors.png (71.19 KiB) Viewed 26990 times
You can control and add layers using the layer list: View > Layer List
Screen Shot 2015-12-24 at 16.13.34.png
Screen Shot 2015-12-24 at 16.13.34.png (25.51 KiB) Viewed 25191 times
In this example, several layers with different colors and other attributes have been added. The current layer is red and called "center lines". As long as this layer is active, all entities drawn will be red. If the color of the layer is later at any point changed, all entities on that layer will also change their color.

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Color of Entities (Lines, Arc, Hatches, Solid Fills, Texts, etc.)

Post by andrew » Tue Oct 22, 2013 8:23 pm

Keeping in mind all of the above, it is also possible to assign individual colors to entities. The easiest way to do so is by assigning a color using the property editor as shown below. Select the entities you want to change, make sure the property editor is shown (View - Property Editor) and change the color in the property editor.

In the interest of keeping a drawing well organized and maintainable, individual colors should be used very sparingly in truly exceptional cases only.
Attachments
individual_colors.png
individual_colors.png (62.72 KiB) Viewed 26990 times

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Color of Entities (Lines, Arc, Hatches, Solid Fills, Texts, etc.)

Post by andrew » Mon Dec 04, 2017 9:49 am

Troubleshooting

Black and White

In older CAD files, there used to be only one color for black and white. Depending on the background, that color was displayed as white (on a black background) or as black (on a white background).

To make sure a drawing is visible, QCAD automatically displays white lines as black (on a white or bright background) and black lines in white (on a black or dark background).

In some situations, you might want to be able to force entities to be black, even on a black background or white on a white background. If that is the case, you can switch off the auto color correction under:
Edit > Application Preferences > Graphics View > Appearance > Prevent white on white / black on black display

Locked

Return to “QCAD Tips and Tutorials”