GstarCAD command

LAYMRG command

Merge one or more drawing layers into a target layer and automatically remove the original source layers.

Command
LAYMRG
Alias
—
Tool group
Layers
Level
Intermediate

What does LAYMRG do?

LAYMRG combines one or more source layers into a single target layer. All objects from the selected source layers are moved to the target layer, and the original source layers are removed from the drawing. It is especially useful for cleaning imported DWG files, simplifying inconsistent layer structures and consolidating duplicate or unnecessary layers.

How to use the command

  1. Type LAYMRG, then press Enter.
  2. Select an object on each layer that you want to merge.
  3. Press Enter after all source layers have been selected.
  4. Select an object on the layer that should become the target layer.
  5. Review the warning showing which layers will be merged.
  6. Choose Yes to complete the merge and remove the original source layers.
Command: LAYMRG ↵
Select object on layer to merge or [Name]: select object on WALLS_OLD ↵
Select object on layer to merge or [Name]: Enter
Select object on target layer or [Name]: select object on WALLS
Continue? [Yes/No] <No>: Y ↵

Key LAYMRG options

The command lets you identify source and target layers directly from drawing objects or choose them by name.

Select objects
Selects objects whose layers should be merged, allowing you to identify the required source layers directly in the drawing.
Name
Opens a layer selection interface so that source or target layers can be selected by their names instead of by picking drawing objects.
Target layer
Defines the layer that will receive all objects from the selected source layers.
Confirmation
Displays a warning before the merge is completed because the source layers will be removed from the drawing.

Practical example: combine duplicate wall layers

Suppose an imported architectural drawing contains WALLS, WALLS_OLD and WALLS-2, but all wall geometry should be organised on one layer. Start LAYMRG and select objects on WALLS_OLD and WALLS-2. Press Enter, then select an object on WALLS as the target. Confirm the operation. GstarCAD moves the objects to WALLS and removes the two redundant source layers.

Tip

Use Name when layer names are easier to identify than objects in a crowded drawing. This is particularly useful when merging several layers into one standard project layer.

Important

LAYMRG removes the source layers after their objects are transferred to the target layer. Check the selected source and target layers carefully before confirming the operation.

All commands Updated 29 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.