How each setting behaves
- ByLayer: The object follows the layer. Change the layer color and every ByLayer object on it changes.
- ByBlock inside a block: The object follows the property of the block reference. If the block reference is red, the object is red. If the block reference is ByLayer, the object follows the layer of the block reference.
- ByBlock outside a block: The object is drawn in white or black (color 7) with a Continuous linetype. It ignores its layer, so it does not follow your layer standard.
- Layer 0 inside a block: An object on layer 0 with ByLayer takes the layer of the block reference. This is the usual way to draw blocks that follow the layer they are inserted on.
Steps with standard AutoCAD tools
- To find objects that are not ByLayer, run QSELECT. Set Properties to Color, Operator to <> Not Equal, and Value to ByLayer. Repeat for Linetype.
- Check the selected objects in the Properties palette (Ctrl+1). ByBlock objects that are not inside a block show up here.
- Run SETBYLAYER and select the objects. Answer Yes to "Change ByBlock to ByLayer?" if ByBlock objects should also follow their layers.
- Answer "Include blocks?" with Yes only if objects inside block definitions should change too. Blocks drawn to follow the block reference stop doing so after that.
Ask AI to do it in one step
Install Drawing Rule Fixer for AutoCAD in an AI client such as Claude Desktop, then ask:
- "Find objects that are not ByLayer"
- "Set objects with their own color or linetype back to ByLayer"
The first request returns a count for each kind and a list of the objects, including objects set to ByBlock in model space and in layouts. Checking is free. The fix in the second request is a subscription feature. It sets the color and linetype of those objects back to ByLayer in one step.
Objects inside block definitions are left as they are, so blocks drawn with ByBlock keep working. A fix applied to a drawing open in AutoCAD can be reverted with one UNDO. Objects on locked layers and inside external references (Xrefs) are not changed.
Which method to use
For a few objects, the Properties palette or SETBYLAYER is enough. For drawings from other companies, where ByBlock and fixed colors are mixed across many layers, ask the AI for the list first and then fix them together.
FAQ
Should I use ByLayer or ByBlock?
Use ByLayer for objects drawn directly in the drawing. Use ByBlock only for objects inside a block when each inserted copy needs its own color or linetype.
Why is an object white even though its layer is red?
Its color is probably ByBlock or a fixed color. A ByBlock object outside a block is drawn in color 7 and ignores the layer. Set its color to ByLayer.
Does SETBYLAYER change ByBlock objects?
Only if you answer Yes to "Change ByBlock to ByLayer?". With No, ByBlock objects stay as they are.
Will the fix change objects inside my blocks?
No. Objects inside block definitions are left as they are. Objects in model space and in layouts are set back to ByLayer.
