# LAYLCK Command [GstarCAD 2016](../../Index.md) → [Commands](../%28Commands%29.md) → [L](%28L%29.md) The LAYLCK command is used to lock layers of specified object. ## Command Access: > **Ribbon:** Home \> Layer \> LAYLCK **Menu:** Format \> Layer Tools \> Layer Lock **Command:** LAYLCK ## Command Prompts: > Select an object on the layer to be locked\<exit\>: ## Function Description: Users could use this command to lock layers in order to prevent accidentally changing. They could also use the LAYLOCKFADECTL system variable to fade objects on locked layers. ## Other versions with matching text [GstarCAD 2017](../../../2017/Commands/L/LAYLCK%20Command.md) · [GstarCAD 2018](../../../2018/Commands/L/LAYLCK%20Command.md) · [GstarCAD 2019](../../../2019/Commands/L/LAYLCK%20Command.md) · [GstarCAD 2020](../../../2020/Commands/L/LAYLCK%20Command.md) · [GstarCAD 2021](../../../2021/Commands/L/LAYLCK%20Command.md)