Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Changing XREF layer colors in a tool
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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;*|*;
Re: Changing XREF layer colors in a tool
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
mhlr,
try
^C^C-layer;c;161;*|[~e-]*;;
Henrique
Re: Changing XREF layer colors in a tool
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Changing XREF layer colors in a tool
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: Changing XREF layer colors in a tool
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Also consider looking up wcmatch function for wild-card pattern match. ..e.g. *|[~e-]*
HTH

