<?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: ObjectClass in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663463#M65975</link>
    <description>ObjectClass is available in 2009 or later.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;_gile&amp;gt; wrote in message news:6370128@discussion.autodesk.com...&lt;BR /&gt;
Hi&lt;BR /&gt;
&lt;BR /&gt;
The ObjectClass property isn't available prior ObjectARX 2010.&lt;BR /&gt;
&lt;BR /&gt;
Prior 2010, you can use the Entity.GetType() method&lt;BR /&gt;
&lt;BR /&gt;
or evaluate the entity type :&lt;BR /&gt;
{code}if (myEnt is Polyline)&lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the polyline&lt;BR /&gt;
}{code}&lt;BR /&gt;
&lt;BR /&gt;
or try an explicit cast to the requiered type (Curve in this example):&lt;BR /&gt;
{code}Curve curveEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead) as Curve&lt;BR /&gt;
if (curveEnt != null)&lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the curve&lt;BR /&gt;
}{code}</description>
    <pubDate>Fri, 09 Apr 2010 15:41:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-04-09T15:41:57Z</dc:date>
    <item>
      <title>ObjectClass</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663461#M65973</link>
      <description>Help. I need ObjectClass in ObjectId but my Visual Studio 2008 does not recognize ObjectClass as one of the properties of ObjectId what is wrong with my code?&lt;BR /&gt;
&lt;BR /&gt;
        Dim bObject As New EditorInput.PromptNestedEntityOptions("")&lt;BR /&gt;
        Dim opt As EditorInput.PromptPointOptions = New EditorInput.PromptPointOptions("Pick point: ")&lt;BR /&gt;
        bObject.NonInteractivePickPoint = myEd.GetPoint(opt).Value&lt;BR /&gt;
        bObject.UseNonInteractivePickPoint = True&lt;BR /&gt;
&lt;BR /&gt;
        Dim bRes As EditorInput.PromptNestedEntityResult = myEd.GetNestedEntity(bObject)&lt;BR /&gt;
        If bRes.Status = EditorInput.PromptStatus.OK Then&lt;BR /&gt;
            Using ta As Transaction = tm.StartTransaction&lt;BR /&gt;
                myEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead)&lt;BR /&gt;
                Dim id As DatabaseServices.ObjectId = myEnt.ObjectId&lt;BR /&gt;
id.ObjectClass &amp;lt;---- does not exists&lt;BR /&gt;
end using&lt;BR /&gt;
end if&lt;BR /&gt;
&lt;BR /&gt;
Edited by: a7v1n on Apr 9, 2010 3:36 AM</description>
      <pubDate>Fri, 09 Apr 2010 03:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663461#M65973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-09T03:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectClass</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663462#M65974</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
The ObjectClass property isn't available prior ObjectARX 2010.&lt;BR /&gt;
&lt;BR /&gt;
Prior 2010, you can use the Entity.GetType() method &lt;BR /&gt;
&lt;BR /&gt;
or evaluate the entity type :&lt;BR /&gt;
{code}if (myEnt is Polyline) &lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the polyline&lt;BR /&gt;
}{code}&lt;BR /&gt;
&lt;BR /&gt;
or try an explicit cast to the requiered type (Curve in this example):&lt;BR /&gt;
{code}Curve curveEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead) as Curve&lt;BR /&gt;
if (curveEnt != null)&lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the curve&lt;BR /&gt;
}{code}</description>
      <pubDate>Fri, 09 Apr 2010 09:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663462#M65974</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2010-04-09T09:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectClass</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663463#M65975</link>
      <description>ObjectClass is available in 2009 or later.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;_gile&amp;gt; wrote in message news:6370128@discussion.autodesk.com...&lt;BR /&gt;
Hi&lt;BR /&gt;
&lt;BR /&gt;
The ObjectClass property isn't available prior ObjectARX 2010.&lt;BR /&gt;
&lt;BR /&gt;
Prior 2010, you can use the Entity.GetType() method&lt;BR /&gt;
&lt;BR /&gt;
or evaluate the entity type :&lt;BR /&gt;
{code}if (myEnt is Polyline)&lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the polyline&lt;BR /&gt;
}{code}&lt;BR /&gt;
&lt;BR /&gt;
or try an explicit cast to the requiered type (Curve in this example):&lt;BR /&gt;
{code}Curve curveEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead) as Curve&lt;BR /&gt;
if (curveEnt != null)&lt;BR /&gt;
{&lt;BR /&gt;
    // Do something here with the curve&lt;BR /&gt;
}{code}</description>
      <pubDate>Fri, 09 Apr 2010 15:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663463#M65975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-09T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectClass</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663464#M65976</link>
      <description>&amp;gt; ObjectClass is available in 2009 or later.&lt;BR /&gt;
Oops!...&lt;BR /&gt;
I upgraded from 2007 to 2010, so I don't know much about 2008 and 2009.</description>
      <pubDate>Fri, 09 Apr 2010 16:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectclass/m-p/2663464#M65976</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2010-04-09T16:01:16Z</dc:date>
    </item>
  </channel>
</rss>

