# LAYMRG 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 merge the selected layer into the target layer and delete the previous one. Users can reduce the number of layers in a drawing by this command. Objects on the selected layers are moved to the target layer, and the original layers are purged from the drawing. If you enter -LAYMRG at the Command prompt, options are displayed. ## Command Access: > **Icon:** ![](Help%20System/GSTARCAD/2027/assets/0b65b8835f4ac794a8c7fb5bd4157558ae8b895941b90ef8fa2526a1ab0f71b9.png) > **Menu:** Format > Layer Tools > Layer Merge > **Ribbon:** Home > Layer > LAYMRG > **Toolbar:** / > **Command:** LAYMRG > **Alias:** / ## Command Prompts: ``` Select object on layer to merge or [Name]: ``` ![](Help%20System/GSTARCAD/2027/assets/0ddaeeb56fb03e275ceead7cc62537716aa9be28e37669ffab2108254bb9034a.jpg) ## Select object on layer to merge Select an object on the layer whose objects will be moved to the target layer. ## Name Displays the Merge Layers dialog box, where you can select the name of a layer whose objects will be moved. Presses Ctrl + click to select more than one layer. ## Undo Removes the previous selection from the list of layers to merge. ## Select object on target layer Selects an object on the layer whose properties you want to retain. ## Name Displays the Merge to Layer dialog box, where you can select the name of a layer where the objects will be moved. --- **Related References:** - [Commands about Layers (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Layers.md) **Related Tasks:** - [To Work With Layer Merging (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Work%20With%20Layer%20Merging.md) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_L/LAYMRG.html) · © Gstarsoft Co., Ltd.