GstarCAD command

LAYLCK command

Lock selected object layers to prevent accidental editing while keeping their geometry visible as a drawing reference.

Command
LAYLCK
Alias
—
Tool group
Layers
Level
Beginner

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

  1. Type LAYLCK, then press Enter.
  2. Select an object located on the layer that you want to lock.
  3. GstarCAD locks the layer containing the selected object.
  4. Continue selecting objects if additional layers should also be locked.
  5. Press Enter when you have finished.
  6. Use LAYULK when 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.

Lock by object
Select any object on the required layer and GstarCAD locks the layer that contains that object.
Multiple layers
Select objects from several different layers to lock multiple layers during the same command.
Geometry remains visible
Objects on locked layers remain displayed in the drawing instead of being hidden or frozen.
Editing prevented
Objects on a locked layer cannot be modified until the layer is unlocked again.

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.

All commands Updated 28 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.