eplisp

Layer Control (LO, OL, LF, FL, LL, LU)

eplisp, the free multilingual LISP library

Layer Control (LO, OL, LF, FL, LL, LU)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsLOOLLFFLLLLU
CategoryLayer Tools
Authorjordanrobot (Matthew D. Jordan)
Sourcejordanrobot/AutocadUtilities
LicenseMIT
Version3.2.4
RequirementsAutoCAD (full version; uses ActiveX for the regen), BricsCAD
Prompt languageEnglish
Fileslayer-control.lsp (5 KB)
Added2026-10-26
Download the original fileSource repository

LO, LF and LL turn off, freeze or lock the layers of selected objects; OL, FL and LU reverse those changes step by step, latest set first.

This tool consists of six short commands that turn off, freeze or lock layers by picking objects. It is similar to AutoCAD's LAYOFF, LAYFRZ and LAYLCK, but it remembers each operation as a set, and the opposite command reopens those sets one at a time, latest first.

Overview

For example, if you turn off layers 1-6 with LO and then layers 7-9, the first OL turns 7-9 back on and the second OL turns 1-6 on. The same logic applies to LF/FL (freeze/thaw) and LL/LU (lock/unlock). Changes are made directly in the layer table, followed by a regen.

How to use it

  1. Load layer-control.lsp with APPLOAD.
  2. Type LO, LF or LL and select objects on the layers you want to turn off, freeze or lock.
  3. Type OL, FL or LU to reverse the last set.
  4. Run the same command again to reverse earlier sets.

Notes and limitations

  • History is kept in memory only and is lost when the drawing is closed.
  • FL and LU work by toggling; if you thawed or unlocked a layer by hand in between, the reverse command can freeze or lock it again.
  • With no history, LU runs AutoCAD's LAYULK command.
  • Freezing the current layer is not prevented.
  • The short command names (LO, LL etc.) may clash with your own aliases; the file also defines global helper functions named ECHO and UNDO.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: jordanrobot/AutocadUtilities – https://github.com/jordanrobot/AutocadUtilities
  2. Author: jordanrobot (Matthew D. Jordan) – https://github.com/jordanrobot
  3. License: MIT – https://github.com/jordanrobot/AutocadUtilities/blob/921e84680807dcb46a4c12dfa6f83a61e6774878/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal