<?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: SymbolTable index and type in reference guide in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113629#M8128</link>
    <description>&lt;P&gt;Here is some more comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Iterate through a Collection Object (.NET)" is in "Developers Guide".&lt;BR /&gt;Its purpose is to describe what can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading this, I was curous which class implements the indexing by [].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Reference Guide" should be the official document to answer this sort of question.&lt;BR /&gt;Its purpose is to describe EVERYTHING that can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is what happened to me.&lt;/P&gt;&lt;P&gt;- I go to "LayerTable Class" and find no description about [] (correct)&lt;BR /&gt;- But I find that LayerTable is subclassed from "SymbolTable". (correct)&lt;BR /&gt;- I go to "SymbolTable Class" and find no description about [] (wrong!)&lt;BR /&gt;- I wonder around in the reference guide wasting time. (tragic)&lt;/P&gt;&lt;P&gt;I hope it does not happen to other people.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 02:19:31 GMT</pubDate>
    <dc:creator>kazfukuoka</dc:creator>
    <dc:date>2023-07-20T02:19:31Z</dc:date>
    <item>
      <title>SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12100394#M8120</link>
      <description>&lt;P&gt;I am having difficulty in reading .NET Reference Guide.&lt;/P&gt;&lt;P&gt;SymbolTable Class is described here:&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_SymbolTable" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_SymbolTable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I do not see the following important facts described here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SymbolTable is indexed by name&lt;/LI&gt;&lt;LI&gt;SymbolTable at index returns ObjectId&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I learned them from tutorials and examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[additional note on 7/14]&lt;BR /&gt;I am asking this to see if I am missing something or if the Reference Guide is missing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the description on the page, I can come up with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;foreach (ObjectId id in layertable) {&lt;BR /&gt;.....&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there seems to be no way to know that LayerTable is indexed, and the index is string type name of the layer..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ObjectId id = layertable[layername];&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[additional note on 7/15]&lt;BR /&gt;I looked at the definition of SymbolTable class on Visual Studio.&lt;BR /&gt;Indeed, it shows the following indexed access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;public ObjectId this[string key] =&amp;gt; (ObjectId);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to conclude the definition is missing in the reference page.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 18:00:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12100394#M8120</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-07-15T18:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12100988#M8121</link>
      <description>&lt;P&gt;[ content removed to avoid confusion . . . the original post was modified/clarified ]&lt;BR /&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 21:24:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12100988#M8121</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-19T21:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12101038#M8122</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;But I do not see the following important facts described here.&lt;/P&gt;
&lt;P&gt;- SymbolTable is indexed by name&lt;BR /&gt;- SymbolTable at index returns ObjectId&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;English is not my first language but it seems to ma that means: to get the objectId of a SymbolTable, you have to use its Name as index (as with a Dictionary).&lt;/P&gt;
&lt;P&gt;textStyleTableTable["Standard"] returns the ObjectId of the TextStyleTable named "Standard".&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 04:48:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12101038#M8122</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-14T04:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12112638#M8123</link>
      <description>&lt;P&gt;Visual Studio shows that SymbolTable has the following method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;public ObjectId this[string key] =&amp;gt; (ObjectId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be missing in the Auto CAD 2023 Reference Guide.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 17:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12112638#M8123</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-07-19T17:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113337#M8124</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you actually trying to accomplish.?&lt;BR /&gt;&lt;BR /&gt;aside from getting the ObjectId by Name ie:&amp;nbsp; layerTable["Layer1"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;iterate the Table with foreach&amp;nbsp; . .&amp;nbsp; ?&lt;/LI&gt;&lt;LI&gt;Determine the Name from a previously determined ObjectId ?&lt;/LI&gt;&lt;LI&gt;Other ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 21:52:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113337#M8124</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-19T21:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113549#M8125</link>
      <description>I wanted to determine ObjectID from layer "NAME".&lt;BR /&gt;I know it can be done by layerTable["NAME"].&lt;BR /&gt;I wanted to know if it is written in the reference guide.&lt;BR /&gt;&lt;BR /&gt;I asked this question to see if the reference guide is reasonably complete.</description>
      <pubDate>Wed, 19 Jul 2023 23:41:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113549#M8125</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-07-19T23:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113578#M8126</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; I wanted to know if it is written in the reference guide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, it is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-F98FAC6B-4DC4-489E-B65E-5D8C5E64E534" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-F98FAC6B-4DC4-489E-B65E-5D8C5E64E534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4"&gt;Iterate through a Collection Object (.NET)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;acObjId &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; acLyrTbl&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;"MyLayer"&lt;/SPAN&gt;&lt;SPAN class=""&gt;];&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;via:&lt;/P&gt;&lt;P&gt;&lt;A title="Basics of the AutoCAD .NET API (.NET)" href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-79A4A44C-DF4C-46CC-B05C-311C8BD226C2" target="_blank" rel="noopener"&gt;Basics of the AutoCAD .NET API (.NET)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 00:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113578#M8126</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-20T00:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113591#M8127</link>
      <description>Thank you, but the page you told is not in the reference guide.&lt;BR /&gt;&lt;BR /&gt;I think "public ObjectId this[string key] =&amp;gt; (ObjectId);"&lt;BR /&gt;is missing in the reference guide.&lt;BR /&gt;I hope it is going to be added in SymbolTable class page.</description>
      <pubDate>Thu, 20 Jul 2023 00:19:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113591#M8127</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-07-20T00:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113629#M8128</link>
      <description>&lt;P&gt;Here is some more comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Iterate through a Collection Object (.NET)" is in "Developers Guide".&lt;BR /&gt;Its purpose is to describe what can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading this, I was curous which class implements the indexing by [].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Reference Guide" should be the official document to answer this sort of question.&lt;BR /&gt;Its purpose is to describe EVERYTHING that can be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here is what happened to me.&lt;/P&gt;&lt;P&gt;- I go to "LayerTable Class" and find no description about [] (correct)&lt;BR /&gt;- But I find that LayerTable is subclassed from "SymbolTable". (correct)&lt;BR /&gt;- I go to "SymbolTable Class" and find no description about [] (wrong!)&lt;BR /&gt;- I wonder around in the reference guide wasting time. (tragic)&lt;/P&gt;&lt;P&gt;I hope it does not happen to other people.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 02:19:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113629#M8128</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2023-07-20T02:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolTable index and type in reference guide</title>
      <link>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113721#M8129</link>
      <description>&lt;P&gt;I understand what you are saying.&lt;BR /&gt;One thing I have learnt is that People work differently to each other.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It makes sence to me that after the initial "Hello World" exercises the next thing to do is progressively read about the Basics that apply for all Fundamentals . . . this suits me.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For interest:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var result = BlockTableRecord.ModelSpace;
doc.Editor.WriteMessage($"result value :{result} is a {result.GetType()}\n");

// Open the Block table record Model space for write
BlockTableRecord btrMS1 = tr.GetObject(bt[result],
                                    OpenMode.ForWrite) as BlockTableRecord;

BlockTableRecord btrMS = tr.GetObject(bt[BlockTableRecord.ModelSpace],
                                 OpenMode.ForWrite) as BlockTableRecord;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;results in : &lt;EM&gt;result value :*MODEL_SPACE is a System.String&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;. . . there are lots of examples in the samples that demonstrate the principle of accessing the property with a&amp;nbsp; "Name" string. It's important that this methodolody is understood.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you'd like to see the doc's changed try&amp;nbsp;&lt;SPAN&gt;Product Feedback [&lt;/SPAN&gt;&lt;A href="https://www.autodesk.com/company/contact-us/product-feedback?_ga=2.172998240.217273562.1689556758-1180220884.1689022928" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.autodesk.com/company/contact-us/product-feedback&lt;/A&gt;&lt;SPAN&gt;].&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 02:17:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symboltable-index-and-type-in-reference-guide/m-p/12113721#M8129</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-20T02:17:56Z</dc:date>
    </item>
  </channel>
</rss>

