# LAYLCK Command [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [L](Help%20System/GSTARCAD/2022/Commands/L/(L).md) ## Function Description: This command is used to lock the layer of a selected object. Users can use this command to prevent objects on a layer from being accidentally modified. They can also use the LAYLOCKFADECTL system variable to fade the display of objects on locked layers. ## Command Access: > **Icon:** > ![](GCADICO_LCKLAY.png) > **Menu:** Format \> Layer Tools \> Layer Lock > **Ribbon:** Home \> Layer \> LAYLCK > **Toolbar:** Layers Ⅱ \> Layer Lock > **Command:** LAYLCK > **Alias:** / ## Command Prompts: Select objects on the layer(s) to be isolated: