LCX LISP: Move Selection to Current Layer (Free AutoLISP Download)
LCX moves every selected entity onto the drawing's current (active) layer in one command, no need to open the layer dropdown in the ribbon.
LYRCUR-bgol (Move Selection to Current Layer)
Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in
Inspired by the general concept of command-line layer-reassignment utilities used in CAD drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.
Overview
LCX moves every selected entity onto the drawing's current (active) layer in one command, no need to open the layer dropdown in the ribbon.
How to Use
- Load
LYRCUR-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Set whichever layer you want as the current/active layer.
- Type
LCXat the command line and press Enter. - Select the entities you want moved onto that layer.
- Press Enter to finish, all selected entities switch to the current layer immediately, including their layer-assigned color.
Why Use It
- Keyboard-only workflow, change entity layers without moving focus to the ribbon's layer dropdown.
- Speed, faster for command-line-oriented users.
- Simplicity, a quick select-and-run operation for a very common drafting task.
Where to Use It
- Moving entities drawn on the wrong layer onto the correct one.
- Consolidating scattered entities onto a standard working layer.
- Any workflow where command-line efficiency beats mouse-driven ribbon interaction.
Notes
- Works on any selectable entity type.
- Uses the standard
CLAYERsystem variable to determine the target layer, whatever layer is active when you run the command. - Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.
Credits
Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.
Frequently Asked Questions
LCX is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
Works on any selectable entity type.
Keyboard-only workflow, change entity layers without moving focus to the ribbon's layer dropdown.
Yes. LCX is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.
Drag and drop LYRCUR-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type LCX at the command line to run it.
๐ค About BGol Community
BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.
๐ Made with โค๏ธ by BGol Community of Advanced Surveying
Free, open-source, and built for the CAD community, for personal or commercial use, always.