top of page

GstarCAD Tips & Tricks - 48: Understanding Layer 0, ByLayer and ByBlock

Understanding Layer 0, ByLayer and ByBlock

Every time you create a new drawing, you will see a default layer: Layer0. You can’t delete it. Then when you define their properties such as color, line weight, etc, you will see ByLayer and ByBlock properties. Most of you might already know what ByLayer means. But do you also know what does ByBlock behavior?

  • Layer0 is a default GstarCAD layer. You can create geometry in your blocks on it. When you insert those blocks, they will use active layer. When you move this block to different layer, the objects in it will use it and ignore Layer 0.

  • When you define object properties (color, line weight, etc) to ByLayer, all of it properties will use the same properties as it’s defined in the layers’ properties.

  • When you create geometries in your block using ByBlock, then you can override its properties after the block has been placed.

  • When you create geometries in your block other than ByLayer or ByBlock, then you can’t override them after your block has been placed.

Confused? Let’s create some example to comprehend this better.

1. Open a new file and create two layers, you can give them any name. Set different color and lineweight so we can easily distinguish them later.