Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 38 ยท Layers, Blocks and Annotation

AutoCAD Layers: Properties, Linetypes, Filters and States

Learn AutoCAD layers: create and name them, set color, linetype and lineweight, use freeze, off and lock, BYLAYER, filters, layer states and the LAYISO and LAYMRG tools.

A layer is a named container for drawing objects. Every object lives on exactly one layer, and the layer decides what the object looks like (color, linetype, lineweight, transparency) and whether it is visible, editable and plotted. Good layers are what make a drawing readable: walls on one layer, dimensions on another, furniture on a third, so you can hide, lock or print each group on its own.

AutoCAD cannot run on this site, so the menus and commands below are described exactly as you meet them in the program, and the examples that run in your browser are small, clearly labelled stand-ins written in JavaScript that model the same ideas (name rules, filters, property resolution).

Opening the Layer Properties Manager

Type LAYER (alias LA) or click Home > Layers > Layer Properties. The palette lists every layer in a grid:

Column Meaning
Status A green check marks the current layer, where new objects go
Name The layer name (up to 255 characters; avoid `< > / \ " : ; ? *
On A light bulb. Off = invisible, but still in the drawing
Freeze A sun/snowflake. Frozen layers are invisible and ignored by regeneration
Lock A padlock. Visible but cannot be edited or selected for modification
Color, Linetype, Lineweight, Transparency Default look of everything on the layer
Plot Printer icon. A layer with Plot off shows on screen but never prints
New VP Freeze Freezes the layer in newly created layout viewports

Create a layer with New Layer (Alt+N), type a name, press Enter, and click the color, linetype or lineweight cells to change them. Double-click a layer's status icon (or press Set Current) to make it current.

Layer 0 always exists and cannot be deleted or renamed. Defpoints is created automatically with the first dimension; it never plots, so do not draw on it.

Off, Freeze or Lock?

  • Off hides the layer but its objects still take part in regeneration. Use it for a quick toggle.
  • Freeze hides the layer and removes it from regeneration, which makes big drawings faster. You cannot freeze the current layer.
  • Lock keeps objects visible (they fade slightly, controlled by the LAYLOCKFADECTL system variable) and snappable, but protects them from editing.

A frequent routine is to lock the layers you are not working on, so a stray crossing window does not move the walls while you edit furniture.

BYLAYER, BYBLOCK and overrides

Each object has its own color, linetype and lineweight properties. The default value of each is ByLayer, which means "use whatever my layer says". Change the layer's color and every ByLayer object follows. If you set an object's color to red directly, it becomes an override and ignores the layer.

ByBlock is used inside block definitions: the object takes the properties of the block reference it sits in (see blocks). The golden rule of CAD standards: keep everything ByLayer, and change the layer instead of overriding the object.

JS Stand-in: resolve ByLayer, ByBlock and overrides

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Linetypes and linetype scale

Click the Linetype cell in the Layer Properties Manager, then Load to pick from acad.lin (imperial) or acadiso.lin (metric): CENTER, HIDDEN, DASHED, PHANTOM, DASHDOT and more. If a dashed line looks continuous, the scale is wrong, not the linetype:

  • LTSCALE is the global multiplier for dash lengths. A common rule is to set it to the drawing scale denominator for model space drawings (for a 1:50 sheet, try 50).
  • CELTSCALE scales only objects you draw next.
  • PSLTSCALE = 1 makes linetypes in paper space viewports use paper units, which keeps dashes consistent across viewports.
  • After changing LTSCALE, run REGEN if nothing seems to happen.

Lineweights (thickness when plotted) are set per layer too, for example 0.25 mm for thin lines and 0.50 mm for walls. The LWT toggle on the status bar only controls display; plotting uses the plot style (see plotting).

Naming layers with a standard

Random names (Layer1, new, walls2) turn into chaos in a team. Offices adopt a convention such as the AIA/NCS pattern DISCIPLINE-MAJOR-MINOR (for example A-WALL-FULL, A-DOOR, A-ANNO-DIMS) or the ISO 13567 form. The first letter is the discipline (A architecture, S structure, M mechanical, E electrical).

JS Stand-in: validate layer names against a convention

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Managing many layers

Large drawings can hold hundreds of layers. These tools keep them manageable:

  • Layer filters. A property filter (the funnel button) selects layers by name pattern and properties: A-* shows every architecture layer, *DIM* every layer with DIM in its name. A group filter is a hand-picked list you drag layers into.
  • Layer states. The Layer States Manager saves the on/frozen/locked/color setup under a name ("Demolition", "Electrical plan") and restores it with one click.
  • Layer tools. LAYISO isolates the layer of a selected object (all others are turned off or locked), LAYUNISO restores them, LAYFRZ and LAYOFF switch off the layer of a picked object, LAYMCUR makes a picked object's layer current, LAYMCH moves selected objects to the layer of another object ("match"), LAYMRG merges one layer into another, and LAYDEL deletes a layer and everything on it.
  • Layer Walk (LAYWALK) shows one layer at a time so you can see what is on it.
  • PURGE removes unused layers, and LAYTRANS maps your layers to a standard's names.
JS Stand-in: filter layers with wildcard patterns

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Common mistakes

  • Drawing everything on layer 0 and recolouring objects by hand.
  • Putting dimensions or text on a layer that is later frozen, so they vanish with it.
  • Using LAYDEL instead of LAYMRG, which destroys objects.
  • Forgetting that a frozen layer cannot be made current.
  • Using a non-plotting layer (Plot off, or Defpoints) for geometry you need on paper.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does an object's color value ByLayer mean?

    ByLayer defers to the layer. ByBlock defers to the containing block reference, and an explicit color is an override.
  2. 2. Which state removes a layer from regeneration, making large drawings faster?

    Frozen layers are skipped during regeneration. Off layers are only hidden, and Lock only blocks editing.
  3. 3. A dashed line looks solid. What is the most likely fix?

    Dashes are probably shorter than the pixels they occupy because the linetype scale does not match the drawing size.
  4. 4. Which command deletes a layer together with all objects on it?

    LAYDEL erases the objects as well. PURGE removes only unused layers, and LAYMRG moves objects to another layer.

Summary

  • Layers group objects and control color, linetype, lineweight, visibility, editing and plotting.
  • Keep objects ByLayer and change the layer, not the object.
  • Off hides, Freeze hides and speeds regeneration, Lock protects.
  • Use LTSCALE for dash size and a naming standard for teamwork.
  • Filters, layer states and LAYISO, LAYMCH, LAYMRG make large drawings manageable.

Next: Blocks and the INSERT command