<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Layer Filter Delete...case-sensitive?? in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135666#M50144</link>
    <description>Okay....well as long as you're on top of it.  :)

-- 
I love deadlines
I like the whooshing sound they make as they fly by.

"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message
news:4149e2f5$1_3@newsprd01...
| Matt,
|
| Something else in ADT/LDD/ABS recreates those dictionaries. I'm trying to
| get to the bottom of it.
|
| -- 
| R. Robert Bell
|
|
|&lt;/NOT.ROBERTB&gt;</description>
    <pubDate>Thu, 16 Sep 2004 19:32:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-09-16T19:32:04Z</dc:date>
    <item>
      <title>Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135658#M50136</link>
      <description>Just an FYI:

Using the following code to remove Layer Properties Filters, I've noticed
something kinda quirky.
On some of my drawings (mainly Land Desktop and Building Systems, both
2005), it didn't work.
HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then it
works (same thing for the LSP equivalent that R Bell has posted before).

I didn't realize it was case sensitive??!?

Sub LayerFilterDelete()
    Dim objDict As AcadDictionary
    Dim objRec As AcadObject
    If ThisDrawing.Layers.HasExtensionDictionary Then
        Set objDict = ThisDrawing.Layers.GetExtensionDictionary
        For Each objRec In objDict
            If (objRec.Name = "ACAD_LAYERFILTERS") Or _
                (objRec.Name = "AcLyDictionary") Then objDict.Remove
objRec.Name
        Next
    End If
End Sub

-- 
I love deadlines
I like the whooshing sound they make as they fly by.</description>
      <pubDate>Thu, 16 Sep 2004 13:25:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135658#M50136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135659#M50137</link>
      <description>Okay... now I'm totally confused.
I took a look at the Acad Database using DBVIEW and prior to running the
layer filter delete program, ACLYDICTIONARY did NOT exist.  But if I
manually deleted the layer filters, then opened DBVIEW again to take a look,
ACLYDICTIONARY shows up.  (Maybe it's NOT case-sensitive)

So now my question is, what need's to be initiated before the program can be
run??  We've found this to be an invaluable tool since we're constantly
dealing with drawings from people who, let's face it, don't know how to
clean up after themselves.  In one drawing alone, I've deleted 13,500 layer
filters (that's not a typo).  You can just imagine how long it took to
display the layer properties manager!!

-- 
I love deadlines
I like the whooshing sound they make as they fly by.

"Matt W" &lt;NOSPAM&gt; wrote in message
news:4149946f$1_2@newsprd01...
| Just an FYI:
|
| Using the following code to remove Layer Properties Filters, I've noticed
| something kinda quirky.
| On some of my drawings (mainly Land Desktop and Building Systems, both
| 2005), it didn't work.
| HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then it
| works (same thing for the LSP equivalent that R Bell has posted before).
|
| I didn't realize it was case sensitive??!?
|
| Sub LayerFilterDelete()
|     Dim objDict As AcadDictionary
|     Dim objRec As AcadObject
|     If ThisDrawing.Layers.HasExtensionDictionary Then
|         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
|         For Each objRec In objDict
|             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
|                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
| objRec.Name
|         Next
|     End If
| End Sub
|
| -- 
| I love deadlines
| I like the whooshing sound they make as they fly by.
|
|
|&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 16 Sep 2004 13:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135659#M50137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135660#M50138</link>
      <description>I have no idea why it does what it does, as I don't have 2005 to experiment 
with. However, couldn't you just change the code to this to take care of and 
case-sensitivity?

If (Ucase(objRec.Name) = "ACAD_LAYERFILTERS") Or _
   (Ucase(objRec.Name) = "ACLYDICTIONARY") Then objDict.Remove

-- 
Jeff
check out www.cadvault.com
"Matt W" &lt;NOSPAM&gt; wrote in message 
news:4149965e$1_1@newsprd01...
&amp;gt; Okay... now I'm totally confused.
&amp;gt; I took a look at the Acad Database using DBVIEW and prior to running the
&amp;gt; layer filter delete program, ACLYDICTIONARY did NOT exist.  But if I
&amp;gt; manually deleted the layer filters, then opened DBVIEW again to take a 
&amp;gt; look,
&amp;gt; ACLYDICTIONARY shows up.  (Maybe it's NOT case-sensitive)
&amp;gt;
&amp;gt; So now my question is, what need's to be initiated before the program can 
&amp;gt; be
&amp;gt; run??  We've found this to be an invaluable tool since we're constantly
&amp;gt; dealing with drawings from people who, let's face it, don't know how to
&amp;gt; clean up after themselves.  In one drawing alone, I've deleted 13,500 
&amp;gt; layer
&amp;gt; filters (that's not a typo).  You can just imagine how long it took to
&amp;gt; display the layer properties manager!!
&amp;gt;
&amp;gt; -- 
&amp;gt; I love deadlines
&amp;gt; I like the whooshing sound they make as they fly by.
&amp;gt;
&amp;gt; "Matt W" &lt;NOSPAM&gt; wrote in message
&amp;gt; news:4149946f$1_2@newsprd01...
&amp;gt; | Just an FYI:
&amp;gt; |
&amp;gt; | Using the following code to remove Layer Properties Filters, I've 
&amp;gt; noticed
&amp;gt; | something kinda quirky.
&amp;gt; | On some of my drawings (mainly Land Desktop and Building Systems, both
&amp;gt; | 2005), it didn't work.
&amp;gt; | HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then 
&amp;gt; it
&amp;gt; | works (same thing for the LSP equivalent that R Bell has posted before).
&amp;gt; |
&amp;gt; | I didn't realize it was case sensitive??!?
&amp;gt; |
&amp;gt; | Sub LayerFilterDelete()
&amp;gt; |     Dim objDict As AcadDictionary
&amp;gt; |     Dim objRec As AcadObject
&amp;gt; |     If ThisDrawing.Layers.HasExtensionDictionary Then
&amp;gt; |         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
&amp;gt; |         For Each objRec In objDict
&amp;gt; |             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
&amp;gt; |                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
&amp;gt; | objRec.Name
&amp;gt; |         Next
&amp;gt; |     End If
&amp;gt; | End Sub
&amp;gt; |
&amp;gt; | -- 
&amp;gt; | I love deadlines
&amp;gt; | I like the whooshing sound they make as they fly by.
&amp;gt; |
&amp;gt; |
&amp;gt; |
&amp;gt;
&amp;gt;&lt;/NOSPAM&gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 16 Sep 2004 14:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135660#M50138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T14:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135661#M50139</link>
      <description>Absolutely I could do that, but what baffles me is, why doesn't
AcLyDictionary exist when I open a drawing??  I've got a ton of layer
filters that need to be deleted, but they won't because that particular
dictionary doesn't even exist!!

Do I need to create it first to initialize something going on behind the
scenes before I can delete it??!?

(I think my head's going to explode this morning)

-- 
I love deadlines
I like the whooshing sound they make as they fly by.

"Jeff Mishler" &lt;JEFF_M&gt; wrote in message
news:41499ee2_2@newsprd01...
| I have no idea why it does what it does, as I don't have 2005 to
experiment
| with. However, couldn't you just change the code to this to take care of
and
| case-sensitivity?
|
| If (Ucase(objRec.Name) = "ACAD_LAYERFILTERS") Or _
|    (Ucase(objRec.Name) = "ACLYDICTIONARY") Then objDict.Remove
|
| -- 
| Jeff
| check out www.cadvault.com
| "Matt W" &lt;NOSPAM&gt; wrote in message
| news:4149965e$1_1@newsprd01...
| &amp;gt; Okay... now I'm totally confused.
| &amp;gt; I took a look at the Acad Database using DBVIEW and prior to running the
| &amp;gt; layer filter delete program, ACLYDICTIONARY did NOT exist.  But if I
| &amp;gt; manually deleted the layer filters, then opened DBVIEW again to take a
| &amp;gt; look,
| &amp;gt; ACLYDICTIONARY shows up.  (Maybe it's NOT case-sensitive)
| &amp;gt;
| &amp;gt; So now my question is, what need's to be initiated before the program
can
| &amp;gt; be
| &amp;gt; run??  We've found this to be an invaluable tool since we're constantly
| &amp;gt; dealing with drawings from people who, let's face it, don't know how to
| &amp;gt; clean up after themselves.  In one drawing alone, I've deleted 13,500
| &amp;gt; layer
| &amp;gt; filters (that's not a typo).  You can just imagine how long it took to
| &amp;gt; display the layer properties manager!!
| &amp;gt;
| &amp;gt; -- 
| &amp;gt; I love deadlines
| &amp;gt; I like the whooshing sound they make as they fly by.
| &amp;gt;
| &amp;gt; "Matt W" &lt;NOSPAM&gt; wrote in message
| &amp;gt; news:4149946f$1_2@newsprd01...
| &amp;gt; | Just an FYI:
| &amp;gt; |
| &amp;gt; | Using the following code to remove Layer Properties Filters, I've
| &amp;gt; noticed
| &amp;gt; | something kinda quirky.
| &amp;gt; | On some of my drawings (mainly Land Desktop and Building Systems, both
| &amp;gt; | 2005), it didn't work.
| &amp;gt; | HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then
| &amp;gt; it
| &amp;gt; | works (same thing for the LSP equivalent that R Bell has posted
before).
| &amp;gt; |
| &amp;gt; | I didn't realize it was case sensitive??!?
| &amp;gt; |
| &amp;gt; | Sub LayerFilterDelete()
| &amp;gt; |     Dim objDict As AcadDictionary
| &amp;gt; |     Dim objRec As AcadObject
| &amp;gt; |     If ThisDrawing.Layers.HasExtensionDictionary Then
| &amp;gt; |         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
| &amp;gt; |         For Each objRec In objDict
| &amp;gt; |             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
| &amp;gt; |                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
| &amp;gt; | objRec.Name
| &amp;gt; |         Next
| &amp;gt; |     End If
| &amp;gt; | End Sub
| &amp;gt; |
| &amp;gt; | -- 
| &amp;gt; | I love deadlines
| &amp;gt; | I like the whooshing sound they make as they fly by.
| &amp;gt; |
| &amp;gt; |
| &amp;gt; |
| &amp;gt;
| &amp;gt;
|
|&lt;/NOSPAM&gt;&lt;/NOSPAM&gt;&lt;/JEFF_M&gt;</description>
      <pubDate>Thu, 16 Sep 2004 14:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135661#M50139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T14:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135662#M50140</link>
      <description>Would this work for you?

"Matt W" &lt;NOSPAM&gt; wrote in message
news:4149946f$1_2@newsprd01...
&amp;gt; Just an FYI:
&amp;gt;
&amp;gt; Using the following code to remove Layer Properties Filters, I've noticed
&amp;gt; something kinda quirky.
&amp;gt; On some of my drawings (mainly Land Desktop and Building Systems, both
&amp;gt; 2005), it didn't work.
&amp;gt; HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then it
&amp;gt; works (same thing for the LSP equivalent that R Bell has posted before).
&amp;gt;
&amp;gt; I didn't realize it was case sensitive??!?
&amp;gt;
&amp;gt; Sub LayerFilterDelete()
&amp;gt;     Dim objDict As AcadDictionary
&amp;gt;     Dim objRec As AcadObject
&amp;gt;     If ThisDrawing.Layers.HasExtensionDictionary Then
&amp;gt;         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
&amp;gt;         For Each objRec In objDict
&amp;gt;             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
&amp;gt;                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
&amp;gt; objRec.Name
&amp;gt;         Next
&amp;gt;     End If
&amp;gt; End Sub
&amp;gt;
&amp;gt; -- 
&amp;gt; I love deadlines
&amp;gt; I like the whooshing sound they make as they fly by.
&amp;gt;
&amp;gt;
&amp;gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 16 Sep 2004 15:58:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135662#M50140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135663#M50141</link>
      <description>Isn't that for pre-2005??


-- 
I love deadlines
I like the whooshing sound they make as they fly by.

"Paul S" &lt;PSHEEHAN&gt; wrote in message
news:4149b816$1_3@newsprd01...
| Would this work for you?
|
| "Matt W" &lt;NOSPAM&gt; wrote in message
| news:4149946f$1_2@newsprd01...
| &amp;gt; Just an FYI:
| &amp;gt;
| &amp;gt; Using the following code to remove Layer Properties Filters, I've
noticed
| &amp;gt; something kinda quirky.
| &amp;gt; On some of my drawings (mainly Land Desktop and Building Systems, both
| &amp;gt; 2005), it didn't work.
| &amp;gt; HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then
it
| &amp;gt; works (same thing for the LSP equivalent that R Bell has posted before).
| &amp;gt;
| &amp;gt; I didn't realize it was case sensitive??!?
| &amp;gt;
| &amp;gt; Sub LayerFilterDelete()
| &amp;gt;     Dim objDict As AcadDictionary
| &amp;gt;     Dim objRec As AcadObject
| &amp;gt;     If ThisDrawing.Layers.HasExtensionDictionary Then
| &amp;gt;         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
| &amp;gt;         For Each objRec In objDict
| &amp;gt;             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
| &amp;gt;                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
| &amp;gt; objRec.Name
| &amp;gt;         Next
| &amp;gt;     End If
| &amp;gt; End Sub
| &amp;gt;
| &amp;gt; -- 
| &amp;gt; I love deadlines
| &amp;gt; I like the whooshing sound they make as they fly by.
| &amp;gt;
| &amp;gt;
| &amp;gt;
|
|
|&lt;/NOSPAM&gt;&lt;/PSHEEHAN&gt;</description>
      <pubDate>Thu, 16 Sep 2004 16:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135663#M50141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T16:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135664#M50142</link>
      <description>That may be.  I am still in 2004 and it works for me.


"Matt W" &lt;NOSPAM&gt; wrote in message
news:4149bdd1$1_1@newsprd01...
&amp;gt; Isn't that for pre-2005??
&amp;gt;
&amp;gt;
&amp;gt; -- 
&amp;gt; I love deadlines
&amp;gt; I like the whooshing sound they make as they fly by.
&amp;gt;
&amp;gt; "Paul S" &lt;PSHEEHAN&gt; wrote in message
&amp;gt; news:4149b816$1_3@newsprd01...
&amp;gt; | Would this work for you?
&amp;gt; |
&amp;gt; | "Matt W" &lt;NOSPAM&gt; wrote in message
&amp;gt; | news:4149946f$1_2@newsprd01...
&amp;gt; | &amp;gt; Just an FYI:
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt; Using the following code to remove Layer Properties Filters, I've
&amp;gt; noticed
&amp;gt; | &amp;gt; something kinda quirky.
&amp;gt; | &amp;gt; On some of my drawings (mainly Land Desktop and Building Systems, both
&amp;gt; | &amp;gt; 2005), it didn't work.
&amp;gt; | &amp;gt; HOWEVER, if I changed AcLyDictionary to ACLYDICTIONARY (all caps) then
&amp;gt; it
&amp;gt; | &amp;gt; works (same thing for the LSP equivalent that R Bell has posted
before).
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt; I didn't realize it was case sensitive??!?
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt; Sub LayerFilterDelete()
&amp;gt; | &amp;gt;     Dim objDict As AcadDictionary
&amp;gt; | &amp;gt;     Dim objRec As AcadObject
&amp;gt; | &amp;gt;     If ThisDrawing.Layers.HasExtensionDictionary Then
&amp;gt; | &amp;gt;         Set objDict = ThisDrawing.Layers.GetExtensionDictionary
&amp;gt; | &amp;gt;         For Each objRec In objDict
&amp;gt; | &amp;gt;             If (objRec.Name = "ACAD_LAYERFILTERS") Or _
&amp;gt; | &amp;gt;                 (objRec.Name = "AcLyDictionary") Then objDict.Remove
&amp;gt; | &amp;gt; objRec.Name
&amp;gt; | &amp;gt;         Next
&amp;gt; | &amp;gt;     End If
&amp;gt; | &amp;gt; End Sub
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt; -- 
&amp;gt; | &amp;gt; I love deadlines
&amp;gt; | &amp;gt; I like the whooshing sound they make as they fly by.
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt;
&amp;gt; | &amp;gt;
&amp;gt; |
&amp;gt; |
&amp;gt; |
&amp;gt;
&amp;gt;&lt;/NOSPAM&gt;&lt;/PSHEEHAN&gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 16 Sep 2004 17:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135664#M50142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135665#M50143</link>
      <description>Matt,

Something else in ADT/LDD/ABS recreates those dictionaries. I'm trying to
get to the bottom of it.

-- 
R. Robert Bell</description>
      <pubDate>Thu, 16 Sep 2004 19:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135665#M50143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T19:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Layer Filter Delete...case-sensitive??</title>
      <link>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135666#M50144</link>
      <description>Okay....well as long as you're on top of it.  :)

-- 
I love deadlines
I like the whooshing sound they make as they fly by.

"R. Robert Bell" &lt;NOT.ROBERTB&gt; wrote in message
news:4149e2f5$1_3@newsprd01...
| Matt,
|
| Something else in ADT/LDD/ABS recreates those dictionaries. I'm trying to
| get to the bottom of it.
|
| -- 
| R. Robert Bell
|
|
|&lt;/NOT.ROBERTB&gt;</description>
      <pubDate>Thu, 16 Sep 2004 19:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/layer-filter-delete-case-sensitive/m-p/1135666#M50144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-16T19:32:04Z</dc:date>
    </item>
  </channel>
</rss>

