<?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: Select an Entity Event? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4966646#M44366</link>
    <description>ok, thanks Ajilal, i will look into the Editor's evnets and i can solve it~</description>
    <pubDate>Thu, 17 Apr 2014 07:23:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-17T07:23:57Z</dc:date>
    <item>
      <title>Select an Entity Event?</title>
      <link>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4963922#M44364</link>
      <description>when i open a dwg file, and the i can use mouse to click one graphical object, like a line, a circle, an arc and so forth. so my question is, what event is raised when i just click an object, and how can i moniter it? Can anyone post some code for me? That would be of great helpful, thanks!</description>
      <pubDate>Wed, 16 Apr 2014 13:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4963922#M44364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T13:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select an Entity Event?</title>
      <link>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4964108#M44365</link>
      <description>&lt;P&gt;Like this ?&lt;/P&gt;&lt;P&gt;The below code I copied from here&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2011/08/preventing-autocad-objects-from-being-selected-using-net.html"&gt;Preventing AutoCAD objects from being selected&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; void OnSelectionAdded(object sender, &lt;STRONG&gt;SelectionAddedEventArgs&lt;/STRONG&gt; e)
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Editor ed = doc.Editor;

            ObjectId[] addedIds = e.AddedObjects.GetObjectIds();

            for (int i = 0; i &amp;lt; addedIds.Length; i++)
            {

                ObjectId oid = addedIds[i];

               &lt;STRONG&gt; ed.WriteMessage("Selected Item : " +(oid.ObjectClass.DxfName));&lt;/STRONG&gt;


            }

        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:22:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4964108#M44365</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2014-04-16T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select an Entity Event?</title>
      <link>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4966646#M44366</link>
      <description>ok, thanks Ajilal, i will look into the Editor's evnets and i can solve it~</description>
      <pubDate>Thu, 17 Apr 2014 07:23:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/select-an-entity-event/m-p/4966646#M44366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T07:23:57Z</dc:date>
    </item>
  </channel>
</rss>

