What does LAYLCK do?
LAYLCK locks the layer of a selected drawing object so that geometry on that layer cannot be edited accidentally. Objects on locked layers remain visible and can still be selected, making the command useful when you need reference geometry to stay on screen while protecting it from modification. It provides a faster alternative to finding and locking individual layers manually in the Layer Properties Manager.
How to use the command
- Type
LAYLCK, then press Enter. - Select an object located on the layer that you want to lock.
- GstarCAD locks the layer containing the selected object.
- Continue selecting objects if additional layers should also be locked.
- Press Enter when you have finished.
- Use
LAYULKwhen you need to unlock a layer again.
Command: LAYLCK ↵
Select an object on the layer to be locked: select object
Select an object on the layer to be locked: select another object
Select an object on the layer to be locked: Enter
Key LAYLCK behaviour
LAYLCK protects drawing geometry from editing while keeping it available as a visual reference.
Practical example: protect an architectural reference
Suppose an architectural floor plan contains existing walls that should remain unchanged while new furniture is being added. Start LAYLCK and select a wall on the WALLS layer. GstarCAD locks that layer while leaving the wall geometry visible as a reference. You can continue placing and editing furniture without accidentally modifying the existing walls. When wall editing is required again, use LAYULK and select an object on the locked layer.
Tip
Use LAYLCK when geometry should remain visible but protected from editing. Use LAYOFF or LAYFRZ instead when the layer should also disappear from the working view.