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
- Type
LAYMRG, then press Enter. - Select an object on each layer that you want to merge.
- Press Enter after all source layers have been selected.
- Select an object on the layer that should become the target layer.
- Review the warning showing which layers will be merged.
- 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.
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.