Explainer · byblock vs bylayer
ByBlock vs ByLayer: what the difference really means
By Saumyajit Maity · Published 12 Feb 2023 · Updated 13 Feb 2026
ByBlock and ByLayer are the two special property values that decide where a line's colour, linetype and lineweight actually come from. They sit at the top of every colour and linetype dropdown, and they are the single biggest reason a downloaded block sometimes ignores the layer you put it on — or obeys it perfectly. Understanding the difference turns block behaviour from a mystery into something you control deliberately.
This explainer breaks down what each setting means, how AutoCAD resolves a property through the chain of object, block and layer, and the practical recipe most professional drafters follow so their blocks recolour cleanly when dropped onto any layer. It applies to every library block, from a door to a table to a title block.
ByLayer: take the property from the layer
When an object's colour is set to ByLayer, the object draws in whatever colour its layer is set to. Put it on a red layer and it is red; change the layer to blue and it instantly turns blue. The same goes for linetype and lineweight. ByLayer is the default and the backbone of disciplined CAD: it means you control appearance centrally from the Layer Properties Manager rather than overriding objects one by one.
Most geometry in a well-built drawing is ByLayer. It keeps drawings predictable, makes global changes a single click, and ensures a wall reads as a wall whether it is in model space or referenced into a sheet. For ordinary lines and arcs, ByLayer is almost always the right answer.
ByBlock: defer the property to the parent
ByBlock is subtler. An object set to ByBlock has no opinion of its own about colour, linetype or lineweight. Instead it waits to be packaged into a block, and then it inherits whatever the block reference is set to in the host drawing. Until it is part of a block, a ByBlock object behaves as if it were on a default layer — drawn black/white with a continuous line.
The power of ByBlock shows up when you want one block definition to display in different colours in different places. Draw the block geometry as ByBlock, and then each inserted reference can be given its own colour override. Insert the door once in red and once in green from the same definition, and each instance honours the override applied to that reference.
How AutoCAD resolves the chain
Picture a hierarchy. An object inside a block can be ByLayer, ByBlock, or set to an explicit value like 'red'. When the block is inserted, AutoCAD walks the chain: an explicit value always wins and is drawn exactly as set, ignoring everything around it. A ByLayer object looks at its own layer (the layer it was on when the block was made, or layer 0 if the block was built on 0). A ByBlock object looks up to the block reference's property, and if that is also ByLayer, it ultimately resolves to the layer the block reference sits on.
The special case that makes everything click is layer 0. Geometry drawn on layer 0 with colour and linetype set to ByLayer adopts the layer of whatever block reference contains it. That is why the standard advice is to build blocks on layer 0.
The layer-0 recipe drafters actually use
Here is the convention almost every block library follows so blocks recolour cleanly. Draw the block's geometry on layer 0. Set its colour, linetype and lineweight to ByLayer. Then, when you insert that block and place it on, say, a Doors layer, the geometry adopts the Doors layer's colour and lineweight automatically. Move the same block to a Furniture layer and it instantly recolours to match.
Use ByBlock instead of ByLayer only for parts you want to override per instance — for example a hatch or a fill inside a block that you sometimes want to recolour without changing the layer. Mixing the two deliberately gives you blocks that mostly follow their layer but expose a few elements for per-insert tweaking.
Why a downloaded block ignores your layer
If you insert a door and it stays stubbornly red no matter what layer you move it to, the geometry inside almost certainly has an explicit colour baked in, not ByLayer. The fix is to open the block with BEDIT, select all, and set colour and linetype to ByLayer (and confirm the entities are on layer 0). Save, and the block will start obeying its host layer.
The opposite symptom — a block that turns invisible or hairline-thin — usually means the geometry is ByBlock but the reference is on a layer with an off-state or zero lineweight. Knowing which of the two values is in play tells you exactly where to look.
Quick decision guide
Use ByLayer for nearly all ordinary geometry and for block contents you want to follow their host layer — build those on layer 0. Use ByBlock for elements you want each block instance to be able to override independently of the layer. Use an explicit value (red, a specific linetype) only when something must always look that way regardless of context, such as a permanently red fire-exit symbol.
- ByLayer + layer 0: block adopts the layer you insert it onto. The default for clean libraries. - ByBlock: block element waits for a per-reference override. - Explicit colour: locked appearance, ignores layer and reference.
Free download
Browse the full library — DWG & DXF, no signup.
Questions
Frequently asked
What is the difference between ByBlock and ByLayer in one sentence?+
ByLayer makes an object take its colour and linetype from its layer; ByBlock makes it inherit those properties from the block reference it is packaged inside.
Why does my block not change colour when I change its layer?+
Because the geometry inside has an explicit colour rather than ByLayer. Open the block with BEDIT, set the contents to ByLayer on layer 0, and it will follow the host layer.
Should I build blocks on layer 0?+
Usually yes. Geometry on layer 0 with ByLayer properties adopts the layer of whatever block reference contains it, so the block recolours automatically when you place it on any layer.
When is ByBlock actually the right choice?+
When you want individual block instances to override a property independently of the layer — for example a fill or symbol inside the block that you sometimes recolour per insertion without touching layers.
Related downloads
Blocks for this guide
Popular blocks to download
Related categories
Related guides
Explainer
Dynamic Blocks Explained — AutoCAD Guide in 2026
Dynamic blocks explained simply — what they are, how parameters, actions and grips let one AutoCAD block flex into many sizes, and when to use them over plain blocks.
Explainer
Static vs Dynamic Blocks in AutoCAD Compared
Static vs dynamic blocks in AutoCAD — the real difference, the pros and cons of each, when to choose which, and how to convert a static block into a dynamic one.
Explainer
What Are Block Attributes in AutoCAD?
What are block attributes in AutoCAD? Learn how attributes attach editable text and data to a block, how to define them with ATTDEF, and how to extract schedules.

