Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Contributor
mhlr
Posts: 65
Registered: ‎03-18-2008
Message 1 of 5 (260 Views)

Changing XREF layer colors in a tool

260 Views, 4 Replies
10-05-2012 01:11 PM

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;*|*;

*Expert Elite*
hmsilva
Posts: 3,170
Registered: ‎12-17-2004
Message 2 of 5 (255 Views)

Re: Changing XREF layer colors in a tool

10-05-2012 02:21 PM in reply to: mhlr

mhlr,

try

 

^C^C-layer;c;161;*|[~e-]*;;

 

Henrique

Valued Contributor
mhlr
Posts: 65
Registered: ‎03-18-2008
Message 3 of 5 (223 Views)

Re: Changing XREF layer colors in a tool

10-08-2012 06:31 AM in reply to: hmsilva

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.

*Expert Elite*
hmsilva
Posts: 3,170
Registered: ‎12-17-2004
Message 4 of 5 (216 Views)

Re: Changing XREF layer colors in a tool

10-08-2012 06:51 AM in reply to: mhlr

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

*Expert Elite*
pbejse
Posts: 2,500
Registered: ‎11-24-2009
Message 5 of 5 (208 Views)

Re: Changing XREF layer colors in a tool

10-08-2012 07:15 AM in reply to: mhlr

Also consider looking up wcmatch function for wild-card pattern match. ..e.g. *|[~e-]* 

 

HTH

 

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!