CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 6475:

Question

CAD 
 %  platform  category 
A
AutoCAD entities (objects) grouped in a block can have two special properties: BYBLOCK (by block) and BYLAYER (by layer). These properties influence how the entity will be displayed when the block is inserted (referenced) in a drawing. You can use these values for the color, linetype, linewidth and plot style properties.

  • The BYLAYER setting for block components means - inherit the properties from the layer the block is inserted in.
  • The BYBLOCK setting for block components means - inherit the properties from the properties of the block (the block reference/insertion).

So if you have e.g. a block inserted in the layer LAY (colored green) and you assign it (Ctrl+1) the color red, a line (in the block) with the color BYLAYER will be green and a line with the color BYBLOCK will be red.

Please note that the property names are localized in non-English AutoCAD versions. So it could be e.g. VONLAYER and VONBLOCK (German), DUCALQUE and DUBLOC (French), DLEHLAD and DLEBLOK (Czech).

ACADACLT
100% *CAD
13.1.2009    26878×  
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 14268:How to set the background mask color to BYLAYER?
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13858:Is there also a SETBYBLOCK command?
Tip 13435:Bulk setting of layer properties according to the object in that layer.
Tip 12279:PropByLayer - an inverse function to SetByLayer.


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist