Originally Posted by
Tom Beauford
No two layers can have the same name! I often copy a portion of a layer name before copying the layer then pasting and modifying the new layer name as needed.
As Ctrl+C or Right-Click Copy is used by everyone in every software I'm aware of adding another button to the Layer Manager to do the same thing seems a little much.
Yes that's probably the easiest way to do what the OP was suggesting with what we have now.
I think what the OP wants is, when in the layer manager with a desired layer name that you want to copy selected, selecting "new layer" for it to copy the layer name (as it does with all the other properties) and place a number behind it, instead of "Layer 1", "Layer 2" etc.
There are a thousand ways to make or bring in layers to a drawing.
I wrote this routine a while ago to make layers on the fly just on the command line, I use it more often than I thought I would.
Code:
;;Makes a layer and asks for user input for information
(defun c:mlyr (/ lyrname lyrcol lyrlin lyrwgt)
(setq lyrname (getstring (prompt"Layer Name?")))
(setq lyrcol (getstring (prompt"Layer Color?")))
(setq lyrlin (getstring (prompt"Linetype?")))
(setq lyrwgt (getstring (prompt"Line Weight?")))
(command "_layer" "make" lyrname "color" lyrcol "" "ltype" lyrlin "" "lweight" lyrwgt "" "" "" "")
(princ)
)
(princ)