<?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: Get entity type in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327257#M48739</link>
    <description>&lt;P&gt;You can probably try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Each id In idarray&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ent As Entity = trLocal.GetObject(id, OpenMode.ForRead, True)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof ent is Arc) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (typeof ent is Line) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;Next id&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2013 17:01:02 GMT</pubDate>
    <dc:creator>augusto.goncalves</dc:creator>
    <dc:date>2013-07-11T17:01:02Z</dc:date>
    <item>
      <title>Get entity type</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4326934#M48737</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I filtering for objects based on layer as shown below.How do i know which type the entity is like whether it is arc or line or circle.Any ideas please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dim ss &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; SelectionSet&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dim idarray &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt; ObjectId() = ss.GetObjectIds()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dim id &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;ObjectId&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;For &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; id &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;In &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT size="2"&gt;idarray&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; entity &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; = trLocal.GetObject(id, OpenMode.ForRead, &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;Next &lt;/FONT&gt;id&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4326934#M48737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get entity type</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327034#M48738</link>
      <description>entity.GetType() will help you.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Zakir</description>
      <pubDate>Thu, 11 Jul 2013 14:18:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327034#M48738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get entity type</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327257#M48739</link>
      <description>&lt;P&gt;You can probably try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Each id In idarray&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ent As Entity = trLocal.GetObject(id, OpenMode.ForRead, True)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof ent is Arc) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (typeof ent is Line) then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;Next id&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 17:01:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327257#M48739</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2013-07-11T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get entity type</title>
      <link>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327743#M48740</link>
      <description>Thanks a lot for the replies &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 12 Jul 2013 03:00:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/get-entity-type/m-p/4327743#M48740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-12T03:00:01Z</dc:date>
    </item>
  </channel>
</rss>

