Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: HATCH
Invalid option keyword.
; error: Function cancelled
You're welcome anytime.
(defun dfn_ent_layernew(resetlayer picksetListorStr / $rr mpl tip sos $rr ii elf mli)
(setq;|a11476|;
tip (type resetlayer)
resetlayer (if (> resetlayer "") (strcase resetlayer T) nil)) (setq;|a11546|;
$rr (if (> picksetListorStr "") (ssget "_X" (list (cons 0 picksetListorStr))) picksetListorStr)) (if (and $rr (not (tblsearch "LAYER" resetlayer))) (dfn_layer_new resetlayer 255 1 "")) (if (and $rr (tblsearch "LAYER" resetlayer)) (progn (progn (setq;|a11728|;
ii (- (sslength $rr) 1)) (while (>= ii 0) (setq;|a11774|;
elf (entget (ssname $rr ii))
mli (entmod (subst (cons 8 resetlayer) (assoc 8 elf) elf))) (setq;|a11894|;
ii (- ii 1)))) (alert "okai"))) (princ)
$rr)
You set "" for random 0layer at CurrentLayer-Destinationathe code works but the HATCH layer is notYes, because the codes for this layer name was added into the first posted codes but anyway here you go.Code - Auto/Visual Lisp: [Select]
IIRC you can't select anything on locked layers in the overkill command, therefore if you lock the layers you don't want altering overkill shouldn't touch them.
What is IIRC, there is no IIRC command in Autocad 2020 ???
Thanks
; error: bad argument type: stringp nil
I try this butQuote; error: bad argument type: stringp nilCode - Auto/Visual Lisp: [Select]