# LAYLCK Command [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [L](Help%20System/GSTARCAD/2027/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:** ![](Help%20System/GSTARCAD/2027/assets/88891c86e215328fe00ca496820aaafac1baa58a729d1b41fbe1887fa02a5338.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: ``` --- **Related References:** - [Commands about Layers (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Layers.md) **Related Tasks:** - [To Work with Layers (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Work%20with%20Layers.md) - [To Lock or Unlock a Layer (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Lock%20or%20Unlock%20a%20Layer.md) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_L/LAYLCK.html) · © Gstarsoft Co., Ltd.