Background:
From www.scottonstott.com by Scott Onstott, trainer and architect.
Note: These programs are both copyright and been Copylefted.
*Learning Value:
They have unique indicative names tunlikely to conflict with other commands.
They are short, well laid out and the code of interest lies between comments as shown:-
;; main code
... code ...
;; close
Download The Files:
lispfiles.zip All of the files listed below:-
ALO.LSP Turns "All Layers On".
DUP.LSP Copies or "DUPlicates" the selected objects in place. Duplicates are placed on the current layer.
ISO.LSP "ISOlates" the selected layers by turning all the otherlayers off. It records the current layer state for later recall with the accompanying RET.LSP program.
RET.LSP This program "RETurns" the layers to their previous states before the accompanying ISO.LSP command was used.
LYC.LSP "LaYer Copy" copies the layer from one object to a selection.
LYF.LSP "LaYer Freeze" freezes the layers of the selected objects.
LYO.LSP "LaYer Off" turns off the layers of the selected objects.
ZM.LSP "Z-axis Move" moves the selected objects in the third dimension.