| Author |
Message |
KLYPH
Guest
|
Posted:
Tue Feb 22, 2005 10:51 pm Post subject:
Xref's Layer Manager States |
|
|
Help! When I xreference a file, all of its Layer Manager States are imported. Since you can not highlight more than one state at a time to delete, it takes me a long time to individually select and delete each layer state. And the next time I open the drawing, I have to delete these same layer states again. My file's one or two layer states a lost in a list of 20 or more. I have searched the Help for some setting that will prevent these layer states coming with the the xreferenced file. Am I missing something? Read Ya Later -KLPH
|
|
| Back to top |
|
 |
Dean Saadallah
Guest
|
Posted:
Tue Feb 22, 2005 11:27 pm Post subject:
Re: Xref's Layer Manager States |
|
|
AutoCAD 2004 and higher let you pick as many as you want.
A search on this drive instead of a post would have also revealed a nice
lisp floating around to tackle the task for you.
http://discussion.autodesk.com, select AutoCAD, then use the search box... .
--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
-- |
|
| Back to top |
|
 |
KLYPH
Guest
|
Posted:
Tue Feb 22, 2005 11:54 pm Post subject:
Re: Xref's Layer Manager States |
|
|
Dean, so I made some searches. I tried "Layer Manager," "Layer Manager States," and "Deleting Layer Manager States." I have found out how to delete layers and how to insure the color of layers is saved, but have tired of reading about 50 topics so far, each with numerous replies. So, again, I repeat my question and ask does anyone out there know how to find the lisp Dean is referring too? Read Ya'll Later -KLYPH
|
|
| Back to top |
|
 |
Dave Jones
Guest
|
Posted:
Wed Feb 23, 2005 12:01 am Post subject:
Re: Xref's Layer Manager States |
|
|
"KLYPH" <nospam@address.withheld> wrote in message
news:24775317.1109098490234.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Dean, so I made some searches. I tried "Layer Manager," "Layer Manager
States," and "Deleting Layer Manager States." I have found out how to |
delete layers and how to insure the color of layers is saved, but have tired
of reading about 50 topics so far, each with numerous replies. So, again, I
repeat my question and ask does anyone out there know how to find the lisp
Dean is referring too? Read Ya'll Later -KLYPH
are you talking about Layer Filters? If so I needed a Delete Layer Filter
routine yesterday and found it in about 30 seconds on Google/Groups using
"Delete-Layer-Filters" as a search criteria. Here it is:
(defun C:layerfiltererase ()
(vl-Load-Com)
(vl-Catch-All-Apply '(lambda ()
(vla-Remove
(vla-GetExtensionDictionary
(vla-Get-Layers
(vla-Get-ActiveDocument
(vlax-Get-Acad-Object)))) "ACAD_LAYERFILTERS")))
(princ "\nAll layer filters have been deleted.")
(princ)
)
Dave |
|
| Back to top |
|
 |
Anne Brown
Guest
|
Posted:
Wed Feb 23, 2005 12:02 am Post subject:
Re: Xref's Layer Manager States |
|
|
Klyph -
I don't "do" lisp but thought I'd try a search usinig "xref layer
lisp". See if this message group is what you want
http://discussion.autodesk.com/thread.jspa?messageID=2665080
---
Anne Brown
Discussion Groups Administrator
Autodesk, Inc.
KLYPH wrote:
| Quote: |
Dean, so I made some searches. I tried "Layer Manager," "Layer Manager States," and "Deleting Layer Manager States." |
|
|
| Back to top |
|
 |
KLYPH
Guest
|
Posted:
Wed Feb 23, 2005 12:39 am Post subject:
Re: Xref's Layer Manager States |
|
|
| Dave, thanks for your reply. I used that Layer Filter Delete yesterday. No, I'm talking about the "LMAN" command found in Express Tools, Layers, Layer Manager. In it you can create a named list of layer settings. It is very good, but unfortunately, each individual will come up with numerous lists that are not applicable to my file. I am looking for a setting so that when I xreference a file, its many Layer Manager lists do NOT come with it. I end up with 30 lists, among which I must seach for those few which I have created for my particular file. Any ideas out there? Read Ya Later -KLYPH |
|
| Back to top |
|
 |
Matt
Guest
|
Posted:
Wed Feb 23, 2005 1:11 am Post subject:
Re: Xref's Layer Manager States |
|
|
Can you kill them in the xref before you actually bring your xref in??
Matt
"KLYPH" <nospam@address.withheld> wrote in message
news:22721968.1109101204030.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Dave, thanks for your reply. I used that Layer Filter Delete yesterday.
No, I'm talking about the "LMAN" command found in Express Tools, Layers, |
Layer Manager. In it you can create a named list of layer settings. It is
very good, but unfortunately, each individual will come up with numerous
lists that are not applicable to my file. I am looking for a setting so
that when I xreference a file, its many Layer Manager lists do NOT come with
it. I end up with 30 lists, among which I must seach for those few which I
have created for my particular file. Any ideas out there? Read Ya
Later -KLYPH |
|
| Back to top |
|
 |
Dave Jones
Guest
|
Posted:
Wed Feb 23, 2005 1:38 am Post subject:
Re: Xref's Layer Manager States |
|
|
"KLYPH" <nospam@address.withheld> wrote in message
news:22721968.1109101204030.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | Dave, thanks for your reply. I used that Layer Filter Delete yesterday.
No, I'm talking about the "LMAN" command found in Express Tools, Layers, |
Layer Manager. In it you can create a named list of layer settings. It is
very good, but unfortunately, each individual will come up with numerous
lists that are not applicable to my file. I am looking for a setting so
that when I xreference a file, its many Layer Manager lists do NOT come with
it. I end up with 30 lists, among which I must seach for those few which I
have created for my particular file. Any ideas out there? Read Ya
Later -KLYPH
hmmm, OK. Once again a Google/Groups search for "delete-layer-states" took
about 10 seconds to come up with this...try Google/Groups search, you'll
like it :)
;By Tom Stoeckel
;AutoCAD Express Tools Developer
;tom.stoeckel@autodesk.com
;http://www.autodesk.com/expresstools
(defun c:killstates (/ lyr ent)
(while (setq lyr (tblnext "layer" (not lyr)))
(setq ent (entget (tblobjname "layer" (cdr (assoc 2 lyr))) '("RAK")))
(if (and ent (assoc -3 ent))
(progn
(setq ent (subst '(-3 ("RAK")) (assoc -3 ent) ent))
(entmod ent)
) ;progn
) ;if
);while
(princ)
) ;defun c:killstates |
|
| Back to top |
|
 |
Cad Dept
Guest
|
Posted:
Thu Feb 24, 2005 7:41 pm Post subject:
Re: Xref's Layer Manager States |
|
|
Its called CDGPURGE
From their Readme file
CDG Purge 3.0
CAD Development Group, LLP
Copyright © 2003
CDGpurge 3.0 is compatible with AutoCAD® 2000i and higher.
CDG Purge will remove all layer filters, layerstates, lman layerstates
(express tools), page setups, unreferenced registered applications and
empty groups.
KLYPH wrote:
> Help! When I xreference a file, all of its Layer Manager States are imported. Since you can not highlight more than one state at a time to delete, it takes me a long time to individually select and delete each layer state. And the next time I open the drawing, I have to delete these same layer states again. My file's one or two layer states a lost in a list of 20 or more. I have searched the Help for some setting that will prevent these layer states coming with the the xreferenced file. Am I missing something? Read Ya Later -KLPH |
|
| Back to top |
|
 |
|
|
|
|