<?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: isKindOf() in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329175#M41881</link>
    <description>Ok, it gets crazier.  I found out (sort of) what was causing it.  It has&lt;BR /&gt;
something to do with the OPM.  If i don't register my properties, AutoCAD&lt;BR /&gt;
still knows what's what.  When i do register my properties, though, it&lt;BR /&gt;
suddenly loses the ability to figure out what i'm clicking on.  I guess this&lt;BR /&gt;
just basically means my OPM is corrupting the heck out of AutoCAD or&lt;BR /&gt;
something.  Funny that for the past month my OPM has worked absolutely&lt;BR /&gt;
flawlessly...  Since my OPM implementation is pretty intensive, i'm going to&lt;BR /&gt;
assume that nobody can answer this question for me.  If anyone has any ideas&lt;BR /&gt;
as to how registering properties could cause this, let me know.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
news:EE893D75BE488D9672138AF74824D6BD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a class that is derived from a combination of AcDbPolyline and a&lt;BR /&gt;
base&lt;BR /&gt;
&amp;gt; class that i've made.  Up until today it seemed like everything was&lt;BR /&gt;
working&lt;BR /&gt;
&amp;gt; great.  I have an extremely extensive application here, and I'm getting&lt;BR /&gt;
&amp;gt; really frustrated right now because functions that were working yesterday&lt;BR /&gt;
&amp;gt; seem to be returning information that is not correct.  Before, i was using&lt;BR /&gt;
&amp;gt; the following code to determine if an object selected is one of my custom&lt;BR /&gt;
&amp;gt; entities:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; MyPolyline *pLine = NULL;&lt;BR /&gt;
&amp;gt; pLine = MyPolyline::cast(pObj);&lt;BR /&gt;
&amp;gt; if(pLine)&lt;BR /&gt;
&amp;gt;     acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Foolproof, right?  Well, now AutoCAD has decided that every polyline i&lt;BR /&gt;
click&lt;BR /&gt;
&amp;gt; on is actually one of mine.  No idea why.  I have restored backups of my&lt;BR /&gt;
&amp;gt; app, and it works just fine.  How could this possibly be happening?  The&lt;BR /&gt;
&amp;gt; same basic problem results results from this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; if(pObj-&amp;gt;isKindOf(MyPolyline::desc()))&lt;BR /&gt;
&amp;gt;     acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; It's lying to me again.  Even stranger is that when i use the&lt;BR /&gt;
&amp;gt; AcRxObject::comparedTo( ) function, it returns a "Not Orderable" value.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So it thinks it is already one of mine, and when it returns and tries to&lt;BR /&gt;
&amp;gt; access members of my class, it obviously dies immediately, because it is&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; fact NOT one of my entities.  What do i do, short of backtracking a few&lt;BR /&gt;
days&lt;BR /&gt;
&amp;gt; and starting over?  I'm totally lost as to how this could be happening.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JUSTAVIAN&gt;</description>
    <pubDate>Wed, 13 Mar 2002 20:06:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-03-13T20:06:01Z</dc:date>
    <item>
      <title>isKindOf()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329174#M41880</link>
      <description>I have a class that is derived from a combination of AcDbPolyline and a base&lt;BR /&gt;
class that i've made.  Up until today it seemed like everything was working&lt;BR /&gt;
great.  I have an extremely extensive application here, and I'm getting&lt;BR /&gt;
really frustrated right now because functions that were working yesterday&lt;BR /&gt;
seem to be returning information that is not correct.  Before, i was using&lt;BR /&gt;
the following code to determine if an object selected is one of my custom&lt;BR /&gt;
entities:&lt;BR /&gt;
&lt;BR /&gt;
MyPolyline *pLine = NULL;&lt;BR /&gt;
pLine = MyPolyline::cast(pObj);&lt;BR /&gt;
if(pLine)&lt;BR /&gt;
    acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&lt;BR /&gt;
Foolproof, right?  Well, now AutoCAD has decided that every polyline i click&lt;BR /&gt;
on is actually one of mine.  No idea why.  I have restored backups of my&lt;BR /&gt;
app, and it works just fine.  How could this possibly be happening?  The&lt;BR /&gt;
same basic problem results results from this:&lt;BR /&gt;
&lt;BR /&gt;
if(pObj-&amp;gt;isKindOf(MyPolyline::desc()))&lt;BR /&gt;
    acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&lt;BR /&gt;
It's lying to me again.  Even stranger is that when i use the&lt;BR /&gt;
AcRxObject::comparedTo( ) function, it returns a "Not Orderable" value.&lt;BR /&gt;
&lt;BR /&gt;
So it thinks it is already one of mine, and when it returns and tries to&lt;BR /&gt;
access members of my class, it obviously dies immediately, because it is in&lt;BR /&gt;
fact NOT one of my entities.  What do i do, short of backtracking a few days&lt;BR /&gt;
and starting over?  I'm totally lost as to how this could be happening.</description>
      <pubDate>Wed, 13 Mar 2002 20:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329174#M41880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-13T20:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: isKindOf()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329175#M41881</link>
      <description>Ok, it gets crazier.  I found out (sort of) what was causing it.  It has&lt;BR /&gt;
something to do with the OPM.  If i don't register my properties, AutoCAD&lt;BR /&gt;
still knows what's what.  When i do register my properties, though, it&lt;BR /&gt;
suddenly loses the ability to figure out what i'm clicking on.  I guess this&lt;BR /&gt;
just basically means my OPM is corrupting the heck out of AutoCAD or&lt;BR /&gt;
something.  Funny that for the past month my OPM has worked absolutely&lt;BR /&gt;
flawlessly...  Since my OPM implementation is pretty intensive, i'm going to&lt;BR /&gt;
assume that nobody can answer this question for me.  If anyone has any ideas&lt;BR /&gt;
as to how registering properties could cause this, let me know.&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
news:EE893D75BE488D9672138AF74824D6BD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a class that is derived from a combination of AcDbPolyline and a&lt;BR /&gt;
base&lt;BR /&gt;
&amp;gt; class that i've made.  Up until today it seemed like everything was&lt;BR /&gt;
working&lt;BR /&gt;
&amp;gt; great.  I have an extremely extensive application here, and I'm getting&lt;BR /&gt;
&amp;gt; really frustrated right now because functions that were working yesterday&lt;BR /&gt;
&amp;gt; seem to be returning information that is not correct.  Before, i was using&lt;BR /&gt;
&amp;gt; the following code to determine if an object selected is one of my custom&lt;BR /&gt;
&amp;gt; entities:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; MyPolyline *pLine = NULL;&lt;BR /&gt;
&amp;gt; pLine = MyPolyline::cast(pObj);&lt;BR /&gt;
&amp;gt; if(pLine)&lt;BR /&gt;
&amp;gt;     acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Foolproof, right?  Well, now AutoCAD has decided that every polyline i&lt;BR /&gt;
click&lt;BR /&gt;
&amp;gt; on is actually one of mine.  No idea why.  I have restored backups of my&lt;BR /&gt;
&amp;gt; app, and it works just fine.  How could this possibly be happening?  The&lt;BR /&gt;
&amp;gt; same basic problem results results from this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; if(pObj-&amp;gt;isKindOf(MyPolyline::desc()))&lt;BR /&gt;
&amp;gt;     acutPrintf("\nThis is one of my polylines.");&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; It's lying to me again.  Even stranger is that when i use the&lt;BR /&gt;
&amp;gt; AcRxObject::comparedTo( ) function, it returns a "Not Orderable" value.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So it thinks it is already one of mine, and when it returns and tries to&lt;BR /&gt;
&amp;gt; access members of my class, it obviously dies immediately, because it is&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; fact NOT one of my entities.  What do i do, short of backtracking a few&lt;BR /&gt;
days&lt;BR /&gt;
&amp;gt; and starting over?  I'm totally lost as to how this could be happening.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JUSTAVIAN&gt;</description>
      <pubDate>Wed, 13 Mar 2002 20:06:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329175#M41881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-13T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: isKindOf()</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329176#M41882</link>
      <description>Have you tried "rebuild all"?&lt;BR /&gt;
&lt;BR /&gt;
Paul Kohut&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
news:EE893D75BE488D9672138AF74824D6BD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I have a class that is derived from a combination of AcDbPolyline and a&lt;BR /&gt;
base&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;&lt;SNIP&gt;&amp;gt;&lt;/SNIP&gt;&lt;/JUSTAVIAN&gt;</description>
      <pubDate>Thu, 14 Mar 2002 00:09:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329176#M41882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-14T00:09:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329177#M41883</link>
      <description>Yep.  Actually, i decided to just save all of my new OPM stuff, and i&lt;BR /&gt;
brought back my old files, which seemed to work.  My old files were based on&lt;BR /&gt;
the example "SimpleDynProps" in the SDK.  The code in that example is&lt;BR /&gt;
completely different from what the wizard produces.  Not sure at this time&lt;BR /&gt;
how the differences cause AutoCAD to have a seizure, but i'm going to worry&lt;BR /&gt;
about that after the remainder of my app is finished.  Until then i just&lt;BR /&gt;
need something that works.&lt;BR /&gt;
&lt;BR /&gt;
"Paul Kohut" &lt;PAULKOHUT&gt; wrote in message&lt;BR /&gt;
news:DD07702B3E874DF2FAEB6D9DD06625D9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Have you tried "rebuild all"?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Paul Kohut&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:EE893D75BE488D9672138AF74824D6BD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I have a class that is derived from a combination of AcDbPolyline and a&lt;BR /&gt;
&amp;gt; base&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;lt;&lt;SNIP&gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SNIP&gt;&lt;/JUSTAVIAN&gt;&lt;/PAULKOHUT&gt;</description>
      <pubDate>Thu, 14 Mar 2002 01:07:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329177#M41883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-14T01:07:49Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329178#M41884</link>
      <description>Are you using the ATL_NO_VTABLE macro in your&lt;BR /&gt;
derived classes?  If so look at the explanation of the&lt;BR /&gt;
macro in ATLDEF.H.&lt;BR /&gt;
&lt;BR /&gt;
Paul Kohut&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
news:59C84D61450B15A69006E9729E2B0C31@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Yep.  Actually, i decided to just save all of my new OPM stuff, and i&lt;BR /&gt;
&amp;gt; brought back my old files, which seemed to work.  My old files were based&lt;BR /&gt;
on&lt;BR /&gt;
&amp;gt; the example "SimpleDynProps" in the SDK.  The code in that example is&lt;BR /&gt;
&amp;gt; completely different from what the wizard produces.  Not sure at this time&lt;BR /&gt;
&amp;gt; how the differences cause AutoCAD to have a seizure, but i'm going to&lt;BR /&gt;
worry&lt;BR /&gt;
&amp;gt; about that after the remainder of my app is finished.  Until then i just&lt;BR /&gt;
&amp;gt; need something that works.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Paul Kohut" &lt;PAULKOHUT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:DD07702B3E874DF2FAEB6D9DD06625D9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Have you tried "rebuild all"?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Paul Kohut&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Justavian" &lt;JUSTAVIAN&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:EE893D75BE488D9672138AF74824D6BD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I have a class that is derived from a combination of AcDbPolyline and&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; &amp;gt; base&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;lt;&lt;SNIP&gt;&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SNIP&gt;&lt;/JUSTAVIAN&gt;&lt;/PAULKOHUT&gt;&lt;/JUSTAVIAN&gt;</description>
      <pubDate>Thu, 14 Mar 2002 02:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/iskindof/m-p/329178#M41884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-03-14T02:09:33Z</dc:date>
    </item>
  </channel>
</rss>

