<?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: SelectionSet.Item(1).TextString in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9303666#M4916</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17731"&gt;@geotis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have&lt;FONT color="#FF0000"&gt; one text object&lt;/FONT&gt; in my selection set.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is not very clear whether the SelectionSet only have one item and the item is a Text object, or the SelectionSet have multiple objects and one of it (Item(1), the &lt;STRONG&gt;SECOND&lt;/STRONG&gt; one in the selectionset) is Text object? Your code ONLY works in the the latter case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the selectionset ONLY has one object, then the index in the Item(index) should be 0, not 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 15:55:44 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2020-02-07T15:55:44Z</dc:date>
    <item>
      <title>SelectionSet.Item(1).TextString</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9301433#M4914</link>
      <description>&lt;P&gt;I have one text object in my selection set.&amp;nbsp; I'm trying to use the method shown in the title to obtain the text string.&amp;nbsp; The Locals Window correctly reports the text string in Item1.&amp;nbsp; However, I get the error message "Invalid argument index in Item".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone tell me the proper syntax to use for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:09:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9301433#M4914</guid>
      <dc:creator>geotis</dc:creator>
      <dc:date>2020-02-06T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: SelectionSet.Item(1).TextString</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9303596#M4915</link>
      <description>&lt;P&gt;Cast the item to an AcadText entity. Then use it's TextString property. You should also check the ss for a count &amp;gt; 0, and test the item to be sure its a text ent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim oTextEnt As AcadText&lt;/P&gt;
&lt;P&gt;Set oTextEnt = ss.Item(1)&lt;/P&gt;
&lt;P&gt;MsgBox "The text says: " &amp;amp; oTextEnt.TextString&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9303596#M4915</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2020-02-07T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: SelectionSet.Item(1).TextString</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9303666#M4916</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17731"&gt;@geotis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have&lt;FONT color="#FF0000"&gt; one text object&lt;/FONT&gt; in my selection set.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is not very clear whether the SelectionSet only have one item and the item is a Text object, or the SelectionSet have multiple objects and one of it (Item(1), the &lt;STRONG&gt;SECOND&lt;/STRONG&gt; one in the selectionset) is Text object? Your code ONLY works in the the latter case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the selectionset ONLY has one object, then the index in the Item(index) should be 0, not 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectionset-item-1-textstring/m-p/9303666#M4916</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2020-02-07T15:55:44Z</dc:date>
    </item>
  </channel>
</rss>

