eplisp

Layer Director

eplisp, the free multilingual LISP library

Layer Director
The author does not allow redistribution; download the file from the author's own site.
…
Rate this tool:
CommandsLDONLDOFF
CategoryLayer Tools
AuthorLee Mac
SourceLee Mac Programming
LicenseAuthor's terms of use
Version2.1
RequirementsAutoCAD (full version) or AutoCAD LT 2024 and later; not for AutoCAD for Mac
Prompt languageEnglish
Added2026-10-26
Go to the author's page ↗

Switches the current layer automatically when chosen commands start and restores it afterwards, creating missing layers as needed.

Layer Director is a Lee Mac program built on a Visual LISP command reactor. It puts objects such as text, dimensions or hatches on the right layer without manual layer switching, which helps offices that follow a layer standard.

Overview

A table at the top of the file maps commands to target layers. Command names are full names, not aliases, and wildcards are allowed, so one row can cover all text commands or all leader commands. Missing layers are created with the properties given in the table, and an optional setting forces existing layers to match those properties.

It can also insert xrefs on a layer named after the xref and set chosen system variables for the duration of a command, restoring them afterwards. The reactor turns on when the file loads; LDOFF disables it and LDON turns it back on.

How to use it

  1. Open the file in a text editor and edit the command-to-layer table for your standard.
  2. Set the file to load in every drawing (for example via the Startup Suite or acaddoc.lsp).
  3. Work with your usual commands; the layer changes automatically.
  4. Use LDOFF to disable it and LDON to enable it again.

Notes and limitations

  • It creates the layers listed in the table and, with the force option on, changes the properties of existing layers.
  • Use full command names in the table, not aliases.

Source and license

This tool is not made by eplisp. The description on this page is written by us; get the file and its latest version from the author's page.

The author allows free use for yourself or within your organization; redistribution needs written consent, so we only link to the author's page.

References

  1. Lee Mac Programming (author's page) – https://www.lee-mac.com/layerdirector.html
  2. Author: Lee Mac – https://www.lee-mac.com/
  3. License: Author's terms of use – https://www.lee-mac.com/terms.html

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