<?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 GetNestedEntity shows message &amp;quot;Nothing selected&amp;quot; in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931654#M44626</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at first I have to apologize, if "Nothing selected" is the wrong translation, but I'm using the German version of AutoCAD and there the message is called "Nichts gewählt."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, here's the problem: I implented a command, that will set "inner" attributes to a user defined position. I do so by changing the property "Position" of the attribute (which actually is property "DBText.Position"). After repositioning I cannot click on the attribute again using GetNestedEntity. It just shows the text I mentioned above. I realized, that this behavior occurs, when I reposition the attribute outside of the extents of the outer block. So, it seems to me there is some "action" missing that will update the block's extents?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remembered playing around with the "MoveTextInBlockJig" shown at the &lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-2.html"&gt;Through the Interface blog&lt;/A&gt;. There, the entity (attribute/text) is moved by using the class' TransformBy() method. Is this the better way to do the repositioning? Or can I use the Position property, but with some further method to call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2014 11:01:23 GMT</pubDate>
    <dc:creator>max.senft</dc:creator>
    <dc:date>2014-04-03T11:01:23Z</dc:date>
    <item>
      <title>GetNestedEntity shows message "Nothing selected"</title>
      <link>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931654#M44626</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at first I have to apologize, if "Nothing selected" is the wrong translation, but I'm using the German version of AutoCAD and there the message is called "Nichts gewählt."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, here's the problem: I implented a command, that will set "inner" attributes to a user defined position. I do so by changing the property "Position" of the attribute (which actually is property "DBText.Position"). After repositioning I cannot click on the attribute again using GetNestedEntity. It just shows the text I mentioned above. I realized, that this behavior occurs, when I reposition the attribute outside of the extents of the outer block. So, it seems to me there is some "action" missing that will update the block's extents?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remembered playing around with the "MoveTextInBlockJig" shown at the &lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2013/12/moving-text-in-an-autocad-block-using-net-part-2.html"&gt;Through the Interface blog&lt;/A&gt;. There, the entity (attribute/text) is moved by using the class' TransformBy() method. Is this the better way to do the repositioning? Or can I use the Position property, but with some further method to call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:01:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931654#M44626</guid>
      <dc:creator>max.senft</dc:creator>
      <dc:date>2014-04-03T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: GetNestedEntity shows message "Nothing selected"</title>
      <link>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931738#M44627</link>
      <description>&lt;P&gt;Ok, too sad. I rewrote the part where I use the Position property by now using the TransformBy() method. But it did not change the behavior.&lt;BR /&gt;&lt;BR /&gt;So, it seems that during (or after?) the DisplacementJig's (see the Through the Interface blog) Update() method (in which the TransformBy() is also used) something else happens which will update the entity correctly. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; But what is it?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Max&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:32:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931738#M44627</guid>
      <dc:creator>max.senft</dc:creator>
      <dc:date>2014-04-03T11:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: GetNestedEntity shows message "Nothing selected"</title>
      <link>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931808#M44628</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel really stupid now... &lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt; I should have read the code on the blog properly ... the following lines will do the trick. Shame on me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;foreach (var id in SelectionTools.LastContainers)
{
	var ent2 = CurrentTr.GetObject(id, OpenMode.ForWrite) as Entity;
	if (ent2 != null)
	{
		// We might also have called this method:
		// ent2.RecordGraphicsModified(true);
		// but setting a property works better with undo

		ent2.Visible = ent2.Visible;
	}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:43:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getnestedentity-shows-message-quot-nothing-selected-quot/m-p/4931808#M44628</guid>
      <dc:creator>max.senft</dc:creator>
      <dc:date>2014-04-03T11:43:44Z</dc:date>
    </item>
  </channel>
</rss>

