Does anyone in the group know how to edit the string below so that it will ignore all layer names starting with "E-". I want to change all XREFED layers in the current dwg. to 161 but ignore all XREFED layer names that start with E- such as E-lighting, E-power etc.
Thanks in advance
M.
^C^C-layer;c;161;*|*;
Henrique,
THANK YOU VERY MUCH!! this is perfect. Forgive me! I have very little knowledge of Lisp as you could imagine since I've posted these questions! in your opinion, what would be the best way to learn how to do this on my own??
Thanks again,
M.
mhlr,
try the Acad Customization Guide
under DIESEL,
or just google "acad diesel tutorial"
for Lisp see the Acad Customization Guide,
and see google "afralisp"
Cheers
Henrique
Do you have a command line series for changing a selected xref's layer color and linetype? I'm trying to change the color and linetype of an xref layer only. (Ex. I only want to change the xref existing water color and linetype by selecting the line) I know it can be done with through the layer properties, but I'm trying to make a customized button.
HERE is a recent post that will change a layer color by pick. Perhaps you can modify it to apply a linetype too?
If these layer names have something in common like *DEMO*, you could use the -layer command and apply a color and linetype based on a wildcard match with no picking necessary.
Command: -LAYER Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: c New color [Truecolor/COlorbook] : 1 Enter name list of layer(s) for color 1 (red) <0>: *demo* Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]: