<?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: Editor.SelectAll() to get selection of object IDs not on locked layers in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4584743#M47122</link>
    <description>&lt;P&gt;I suspect you'd need to P/Invoke acedSSGet() using "_:L", as is done in LISP with (ssget "_:L"), or simply iterate the BlockTableRecord, and filter out DBObjects on locked layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2013 17:33:16 GMT</pubDate>
    <dc:creator>BlackBox_</dc:creator>
    <dc:date>2013-11-01T17:33:16Z</dc:date>
    <item>
      <title>Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4584613#M47121</link>
      <description>&lt;P&gt;I'm trying to get the Editor class to select all entities in model space not on locked layers, and despite the documentation stating "&lt;SPAN&gt;Selects all objects in the current space in which are not locked or frozen."....it will always return the object IDs from all layers regardless of if they are locked, frozen, or even turned off. &amp;nbsp;I need it to return a selection set without entities on locked layers. &amp;nbsp;For most of my classes I am using TypedValue to define the entities I want to filter and then creating a SelectionFilter to pass as an argument to Editor.SelectAll(SelectionFilter). &amp;nbsp;Since SelectAll is selecting all entities regardless of the layer state, is it possible to create a TypedValue to use as a filter for the selection? &amp;nbsp;Again, my end goal is to select all entities of certain types on only unlocked layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is what I'm doing now. &amp;nbsp;Would be great if SelectAll actually ignored locked layers or if I could just add a new TypedValue to get entities on only unlocked layers. &amp;nbsp;Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;TypedValue[] tvArr = new TypedValue[]
{
    new TypedValue(-4, "&amp;lt;OR")
    new TypedValue(0, "LINE")
    new TypedValue(0, "LWPOLYLINE")
    new TypedValue(0, "POLYLINE")
    new TypedValue(0, "SPLINE")
    new TypedValue(-4, "OR&amp;gt;")
}

PromptSelectionResult psr 
     = editor.SelectAll(new SelectionFilter(tvArr));

ObjectId[] objectIdArr = psr.Value.GetObjectIds();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;EDIT: &amp;nbsp;I can create a list of all objects and then open each one for read to see if the layer it is on is locked, but that seems ridiculous I should have to include all the locked and unlocked objects in the same list and then check the layer state after the list is already made. &amp;nbsp;It works, but ideally this is not the way it should be done. &amp;nbsp;It's not very efficient. &amp;nbsp;If I don't want objects on locked layers I should disclude them before the list is finalized.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 16:31:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4584613#M47121</guid>
      <dc:creator>mononull</dc:creator>
      <dc:date>2013-11-01T16:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4584743#M47122</link>
      <description>&lt;P&gt;I suspect you'd need to P/Invoke acedSSGet() using "_:L", as is done in LISP with (ssget "_:L"), or simply iterate the BlockTableRecord, and filter out DBObjects on locked layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 17:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4584743#M47122</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2013-11-01T17:33:16Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585013#M47123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use an event handler for the Editor.SelectionAdded event:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        [CommandMethod("TEST")]
        public void SelectionTest()
        {
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            TypedValue[] filter = &lt;BR /&gt;                new TypedValue[1] { new TypedValue(0, "LINE,LWPOLYLINE,POLYLINE,SPLINE") };
            ed.SelectionAdded += ed_SelectionAdded;
            PromptSelectionResult psr = ed.SelectAll(new SelectionFilter(filter));
            ed.SelectionAdded -= ed_SelectionAdded;

            if (psr.Status == PromptStatus.OK)
                ed.SetImpliedSelection(psr.Value);
        }

        private void ed_SelectionAdded(object sender, SelectionAddedEventArgs e)
        {
            Database db = HostApplicationServices.WorkingDatabase;
            using (Transaction tr = db.TransactionManager.StartOpenCloseTransaction())
            {
                LayerTable lt = (LayerTable)tr.GetObject(db.LayerTableId, OpenMode.ForRead);
                ObjectId[] ids = e.AddedObjects.GetObjectIds();
                for (int i = 0; i &amp;lt; ids.Length; i++)
                {
                    Entity ent = (Entity)tr.GetObject(ids[i], OpenMode.ForRead);
                    LayerTableRecord ltr = &lt;BR /&gt;                        (LayerTableRecord)tr.GetObject(lt[ent.Layer], OpenMode.ForRead);
                    if (ltr.IsLocked)
                        e.Remove(i);
                }
                tr.Commit();
            }
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way, using a custom system variable is shown here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.theswamp.org/index.php?topic=40774.msg460479#msg460479" target="_blank"&gt;http://www.theswamp.org/index.php?topic=40774.msg460479#msg460479&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 20:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585013#M47123</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2013-11-01T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585123#M47124</link>
      <description>&lt;P&gt;Thanks Gile. &amp;nbsp;Using the event handler appears to still need to loop though the objectIds after the list is already defined. &amp;nbsp;I have a method of doing that now without the event handler.&lt;BR /&gt;&lt;BR /&gt;Is there another way to get a selection set filtering out the locked layers...like a .NET equivalent to ssget "_:L" the other member posted? &amp;nbsp;I don't want the user to have to make the selection manually. &amp;nbsp;I also don't feel like it's necessary to have to create my own crossing window, or the like, with editor.GetSelection. &amp;nbsp;That's why I was originally using editor.SelectAll. &amp;nbsp;I might use the event handler or what I already wrote for now, so thanks. &amp;nbsp;But if anyone has a better way to get a selection set of specific object types on unlocked layers I'd love to hear it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 21:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585123#M47124</guid>
      <dc:creator>mononull</dc:creator>
      <dc:date>2013-11-01T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585491#M47125</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By my side I don't know any other way to filter out objects on locked layers when using Editor.SelectAll() method.&lt;/P&gt;
&lt;P&gt;The .NET equivalent for the LISP (ssget "_:L" ...) would be PromptSelectionOptions.RejectObjectsonLockedLayers which is not available with Editor.SelectAll() as with LISP the "_:L" option cannot be combinated with the "X" one (SelectAll equivalent).&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2013 04:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585491#M47125</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2013-11-02T04:59:16Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585829#M47126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I have a method of doing that now without the event handler.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And that is ...?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One option might be to first scan the LayerTable to get a list of layers which are not locked, and use that list as a filter for &lt;FONT color="#666699"&gt;.SelectAll&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#666699"&gt;&amp;nbsp;&amp;nbsp; new TypedValue(8, "LAYERA,LAYERC,LAYERX")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2013 08:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4585829#M47126</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-02T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4589115#M47127</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt; I have a method of doing that now without the event handler.&lt;/FONT&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;nbsp; &amp;nbsp; And that is ...?&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Getting a list of everything and then looping through each item to check if it's on a locked layer. &amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll check out promptselectionoptions, but it needs to be independent of user input and selections. &amp;nbsp;Also, I didn't want to have to get the extents min and max, zoom, and create my own selection window if selectall could do all the work. &amp;nbsp;Thanks for the feedback.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:28:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4589115#M47127</guid>
      <dc:creator>mononull</dc:creator>
      <dc:date>2013-11-04T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4590397#M47128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If efficiency is the issue, here's a better implementation of the event handler using:&lt;/P&gt;
&lt;PRE&gt;        // Private field used to pass the locked layer names to the event handler
        private HashSet&amp;lt;string&amp;gt; locked;

        [CommandMethod("TEST1")]
        public void SelectionTest1()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;
            TypedValue[] filter = new TypedValue[1] { new TypedValue(0, "LINE,LWPOLYLINE,POLYLINE,SPLINE") };

	    // Fill the HashSet with the locked layer names
            this.locked = new HashSet&amp;lt;string&amp;gt;();
            using (Transaction tr = db.TransactionManager.StartOpenCloseTransaction())
            {
                LayerTable lt = (LayerTable)tr.GetObject(db.LayerTableId, OpenMode.ForRead);
                foreach (ObjectId id in lt)
                {
                    LayerTableRecord ltr = (LayerTableRecord)tr.GetObject(id, OpenMode.ForRead);
                    if (ltr.IsLocked)
                        this.locked.Add(ltr.Name);
                }
            }&lt;BR /&gt;
            // Temporary register the event handler during the selection
            ed.SelectionAdded += ed_SelectionAdded;
            PromptSelectionResult psr = ed.SelectAll(new SelectionFilter(filter));
            ed.SelectionAdded -= ed_SelectionAdded;

            if (psr.Status == PromptStatus.OK)
                ed.SetImpliedSelection(psr.Value);
        }

        // The event handler uses the HashSet to check if the entity layer is locked
        private void ed_SelectionAdded(object sender, SelectionAddedEventArgs e)
        {
            Database db = HostApplicationServices.WorkingDatabase;
            using (Transaction tr = db.TransactionManager.StartOpenCloseTransaction())
            {
                ObjectId[] ids = e.AddedObjects.GetObjectIds();
                for (int i = 0; i &amp;lt; ids.Length; i++)
                {
                    Entity ent = (Entity)tr.GetObject(ids[i], OpenMode.ForRead);
                    if (this.locked.Contains(ent.Layer))
                        e.Remove(i);
                }
                tr.Commit();
            }
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of the way purposed by Alfred (selection filter with the unlocked layer names)&lt;/P&gt;
&lt;PRE&gt;        [CommandMethod("TEST2")]
        public void SelectionTest2()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            // Get all unlocked layaer names
            List&amp;lt;string&amp;gt; unlocked = new List&amp;lt;string&amp;gt;();
            using (Transaction tr = db.TransactionManager.StartOpenCloseTransaction())
            {
                LayerTable lt = (LayerTable)tr.GetObject(db.LayerTableId, OpenMode.ForRead);
                foreach (ObjectId id in lt)
                {
                    LayerTableRecord ltr = (LayerTableRecord)tr.GetObject(id, OpenMode.ForRead);
                    if (!ltr.IsLocked)
                        unlocked.Add(ltr.Name);
                }
            }

            // Build a selection filter
            TypedValue[] filter = new TypedValue[2]{ 
                new TypedValue(0, "LINE,LWPOLYLINE,POLYLINE,SPLINE"),
                new TypedValue(8, string.Join(",", GetUnlockedLayers(db))) 
            };

            PromptSelectionResult psr = ed.SelectAll(new SelectionFilter(filter));
            if (psr.Status == PromptStatus.OK)
                ed.SetImpliedSelection(psr.Value);
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not certain the second one is more efficient than the first one, internally each entity have to be opened to use the layer part of the selection filter...&lt;/P&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 06:12:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4590397#M47128</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2013-11-05T06:12:29Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4592279#M47129</link>
      <description>&lt;P&gt;Hi, Gilles!&lt;/P&gt;
&lt;P&gt;What about layer name has dot or comma? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;1) Some symbols have to be quoted in this string.&lt;/P&gt;
&lt;P&gt;2) I'm not sure that the length of string is unlimited. Moreover, as far as I remember, the length of the string should not be more than 255.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4592279#M47129</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-11-05T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4593113#M47130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; What about layer name has dot or comma?&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;How do you create layer with comma in the layername? Comma's are not allowed within layernames. Or have you found a way to include a comma I don't know?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; the length of the string should not be more than 255&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I have used a list of blocknames with commas and a length &amp;gt; 2000char for filtering .. always worked. So I guess that will work with layernames too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 17:40:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4593113#M47130</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-05T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4593981#M47131</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;How do you create layer with comma in the layername? Comma's are not allowed within layernames. Or have you found a way to include a comma I don't know?&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok! &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; Comma not allowed, but&amp;nbsp; "#", "$", ".", "@", "[", "]"&amp;nbsp; are allowed (wild-card characters):&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;IMG src="http://img21.imageshack.us/img21/2480/6ic0.png" border="0" alt="" title="" align="middle" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/389680"&gt;@Alfred.NESWADBA&lt;/a&gt; wrote:&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;I have used a list of blocknames with commas and a length &amp;gt; 2000char for filtering .. always worked. So I guess that will work with layernames too. &lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;A href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/files/WS1a9193826455f5ffa23ce210c4a30acaf-4fe5.htm" target="_self"&gt;EXTNAMES&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 class="r"&gt;&lt;FONT size="2"&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2013/01/maximum-length-of-dictionary-key-names.html" target="_blank"&gt;Maximum length of dictionary key names&lt;/A&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;H3 class="r"&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/05/length-of-dictionary-key-names.html" target="_blank"&gt;Length of dictionary key names&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;</description>
      <pubDate>Tue, 05 Nov 2013 23:49:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4593981#M47131</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-11-05T23:49:53Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4596441#M47132</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I misunderstand things now ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I do filtering with TypedValue(0,"LAYER1,LAYER2,LAYER3,LAYER4") ... none of the single layernames has more than 255 characters, but as a filterstring in can contain more than 255 characters as far as I know.&lt;/P&gt;
&lt;P&gt;So I can collect layernames to one comma-delimited string that is longer than 255 and use it for filtering (as each single layername has less than 255 chars).&lt;/P&gt;
&lt;P&gt;And the filtervalue isnot a key-string and does not depend on EXTNAMES as these only specify one single name, not a list of names as a filter string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I wrong or did I misunderstand anything?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 12:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4596441#M47132</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2013-11-06T12:43:08Z</dc:date>
    </item>
    <item>
      <title>Re : Editor.SelectAll() to get selection of object IDs not on locked layers</title>
      <link>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4596533#M47133</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;alfred.neswadba wrote: &lt;BR /&gt;
&lt;P&gt;...Am I wrong or did I misunderstand anything?...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think only Autodesk guys can talk you wrong or not. But I'd like next type of filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;TypedValue[] tvArr = new TypedValue[]
{
    new TypedValue(0, "LINE,LWPOLYLINE,POLYLINE,SPLINE")
    new TypedValue(-4, "&amp;lt;OR")
         new TypedValue(8, "LAYER_1")    
         // ... new TypedValue(8, "LAYER_I")
         new TypedValue(8, "LAYER_N")            
    new TypedValue(-4, "OR&amp;gt;")
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if such "LAYER_I" has wild-cards character(s) every character have to be escaped with "`".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 13:32:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/editor-selectall-to-get-selection-of-object-ids-not-on-locked/m-p/4596533#M47133</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-11-06T13:32:42Z</dc:date>
    </item>
  </channel>
</rss>

