<?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: Is realy object modified? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316616#M37511</link>
    <description>As far as i know, there's no way to directly find out if an object was&lt;BR /&gt;
ACTUALLY modified.  I've been struggling with this fact for a long time.  In&lt;BR /&gt;
my particular case, however, all i need to know is whether the object has&lt;BR /&gt;
been moved or not.  For that i store a point in my custom object -&lt;BR /&gt;
m_pntLastPosition.  Everytime the objectModified( ) function gets fired, i&lt;BR /&gt;
check that variable.  If my NEW point doesn't match the LAST one, then i&lt;BR /&gt;
know the object has been moved.  What's the specific property that you need&lt;BR /&gt;
to be aware of?&lt;BR /&gt;
&lt;BR /&gt;
Another possible solution that i considered was to override the functions in&lt;BR /&gt;
my custom object that correspond to the properties i'm concerned about.&lt;BR /&gt;
What i mean by that is that if i need to know if an object gets moved, i can&lt;BR /&gt;
override the TransfromBy() function, and toggle a m_bWasModified boolean.&lt;BR /&gt;
Then, when objectModified gets called, i can identify that some sort of&lt;BR /&gt;
significant change was made.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mindaugas Bliudzius" &lt;SHASHAS&gt; wrote in message&lt;BR /&gt;
news:EAB401FFD30640080421860B21AEFE90@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; How to chek is object modified, because objectModified() event occurs when&lt;BR /&gt;
&amp;gt; object was opened, but it may be still the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I need only thows&lt;BR /&gt;
objects&lt;BR /&gt;
&amp;gt; witch let say coordinates changed (not just was opened and closed). Any&lt;BR /&gt;
&amp;gt; idea?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SHASHAS&gt;</description>
    <pubDate>Sat, 22 Feb 2003 09:27:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-02-22T09:27:08Z</dc:date>
    <item>
      <title>Is realy object modified?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316615#M37510</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
How to chek is object modified, because objectModified() event occurs when&lt;BR /&gt;
object was opened, but it may be still the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I need only thows objects&lt;BR /&gt;
witch let say coordinates changed (not just was opened and closed). Any&lt;BR /&gt;
idea?</description>
      <pubDate>Fri, 21 Feb 2003 01:19:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316615#M37510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-21T01:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is realy object modified?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316616#M37511</link>
      <description>As far as i know, there's no way to directly find out if an object was&lt;BR /&gt;
ACTUALLY modified.  I've been struggling with this fact for a long time.  In&lt;BR /&gt;
my particular case, however, all i need to know is whether the object has&lt;BR /&gt;
been moved or not.  For that i store a point in my custom object -&lt;BR /&gt;
m_pntLastPosition.  Everytime the objectModified( ) function gets fired, i&lt;BR /&gt;
check that variable.  If my NEW point doesn't match the LAST one, then i&lt;BR /&gt;
know the object has been moved.  What's the specific property that you need&lt;BR /&gt;
to be aware of?&lt;BR /&gt;
&lt;BR /&gt;
Another possible solution that i considered was to override the functions in&lt;BR /&gt;
my custom object that correspond to the properties i'm concerned about.&lt;BR /&gt;
What i mean by that is that if i need to know if an object gets moved, i can&lt;BR /&gt;
override the TransfromBy() function, and toggle a m_bWasModified boolean.&lt;BR /&gt;
Then, when objectModified gets called, i can identify that some sort of&lt;BR /&gt;
significant change was made.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mindaugas Bliudzius" &lt;SHASHAS&gt; wrote in message&lt;BR /&gt;
news:EAB401FFD30640080421860B21AEFE90@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; How to chek is object modified, because objectModified() event occurs when&lt;BR /&gt;
&amp;gt; object was opened, but it may be still the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I need only thows&lt;BR /&gt;
objects&lt;BR /&gt;
&amp;gt; witch let say coordinates changed (not just was opened and closed). Any&lt;BR /&gt;
&amp;gt; idea?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SHASHAS&gt;</description>
      <pubDate>Sat, 22 Feb 2003 09:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316616#M37511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-22T09:27:08Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316617#M37512</link>
      <description>Hi, thank's for reply,&lt;BR /&gt;
&lt;BR /&gt;
The problem is that i need to retriangulate surface when point was modified&lt;BR /&gt;
or deleted. It take a bit of time so i don't want regenerate surface if&lt;BR /&gt;
someone just opened and closed that point. At first i removed kForWrite&lt;BR /&gt;
(because this call event) from my program where i'm cheking objects and only&lt;BR /&gt;
if i realy need to change objetc i used upgeradeOpen(). But still some other&lt;BR /&gt;
program can do that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
The main reason why your replay is good, that now i know that there is no&lt;BR /&gt;
straight way to do that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It is good to know that when you doing something&lt;BR /&gt;
that there is no easier way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; And thank's one more time for your&lt;BR /&gt;
suggestions. I'll try to use them.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Justavian" &lt;RPRIDDY&gt; wrote in message&lt;BR /&gt;
news:081E897285A91F8550B2AE63777F1EE6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; As far as i know, there's no way to directly find out if an object was&lt;BR /&gt;
&amp;gt; ACTUALLY modified.  I've been struggling with this fact for a long time.&lt;BR /&gt;
In&lt;BR /&gt;
&amp;gt; my particular case, however, all i need to know is whether the object has&lt;BR /&gt;
&amp;gt; been moved or not.  For that i store a point in my custom object -&lt;BR /&gt;
&amp;gt; m_pntLastPosition.  Everytime the objectModified( ) function gets fired, i&lt;BR /&gt;
&amp;gt; check that variable.  If my NEW point doesn't match the LAST one, then i&lt;BR /&gt;
&amp;gt; know the object has been moved.  What's the specific property that you&lt;BR /&gt;
need&lt;BR /&gt;
&amp;gt; to be aware of?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Another possible solution that i considered was to override the functions&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; my custom object that correspond to the properties i'm concerned about.&lt;BR /&gt;
&amp;gt; What i mean by that is that if i need to know if an object gets moved, i&lt;BR /&gt;
can&lt;BR /&gt;
&amp;gt; override the TransfromBy() function, and toggle a m_bWasModified boolean.&lt;BR /&gt;
&amp;gt; Then, when objectModified gets called, i can identify that some sort of&lt;BR /&gt;
&amp;gt; significant change was made.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Mindaugas Bliudzius" &lt;SHASHAS&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:EAB401FFD30640080421860B21AEFE90@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; How to chek is object modified, because objectModified() event occurs&lt;BR /&gt;
when&lt;BR /&gt;
&amp;gt; &amp;gt; object was opened, but it may be still the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I need only thows&lt;BR /&gt;
&amp;gt; objects&lt;BR /&gt;
&amp;gt; &amp;gt; witch let say coordinates changed (not just was opened and closed). Any&lt;BR /&gt;
&amp;gt; &amp;gt; idea?&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;/SHASHAS&gt;&lt;/RPRIDDY&gt;</description>
      <pubDate>Sun, 23 Feb 2003 01:19:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316617#M37512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-23T01:19:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316618#M37513</link>
      <description>Mindaugas,&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; The problem is that i need to retriangulate surface when point was&lt;BR /&gt;
modified&lt;BR /&gt;
&amp;gt; or deleted. It take a bit of time so i don't want regenerate surface if&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Don't forget the undo function!&lt;BR /&gt;
&lt;BR /&gt;
You might want to investigate overriding the AcDbDatabaseReactor  reactor;&lt;BR /&gt;
&lt;BR /&gt;
class dBaseReactor : public AcDbDatabaseReactor&lt;BR /&gt;
{&lt;BR /&gt;
public:&lt;BR /&gt;
         virtual void objectUnAppended(const AcDbDatabase* dwg,  const&lt;BR /&gt;
AcDbObject* dbObj);&lt;BR /&gt;
         virtual void objectAppended(const AcDbDatabase *pDwg, const&lt;BR /&gt;
AcDbObject   *pDbObj);&lt;BR /&gt;
         virtual void objectModified(const AcDbDatabase *pDwg,  const&lt;BR /&gt;
AcDbObject   *pDbObj);&lt;BR /&gt;
         virtual void objectErased(const AcDbDatabase   *pDwg,  const&lt;BR /&gt;
AcDbObject     *pDbObj, Adesk::Boolean erased);&lt;BR /&gt;
         virtual void objectOpenedForModify(const AcDbDatabase* dwg,  const&lt;BR /&gt;
AcDbObject* dbObj);&lt;BR /&gt;
};&lt;BR /&gt;
&lt;BR /&gt;
and check in theses functions for your object!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards Gary&lt;BR /&gt;
www.drcauto.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mindaugas Bliudzius" &lt;SHASHAS&gt; wrote in message&lt;BR /&gt;
news:2F10160818A1FEC46F7D72432162A33F@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi, thank's for reply,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The problem is that i need to retriangulate surface when point was&lt;BR /&gt;
modified&lt;BR /&gt;
&amp;gt; or deleted. It take a bit of time so i don't want regenerate surface if&lt;BR /&gt;
&amp;gt; someone just opened and closed that point. At first i removed kForWrite&lt;BR /&gt;
&amp;gt; (because this call event) from my program where i'm cheking objects and&lt;BR /&gt;
only&lt;BR /&gt;
&amp;gt; if i realy need to change objetc i used upgeradeOpen(). But still some&lt;BR /&gt;
other&lt;BR /&gt;
&amp;gt; program can do that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&amp;gt; The main reason why your replay is good, that now i know that there is no&lt;BR /&gt;
&amp;gt; straight way to do that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It is good to know that when you doing&lt;BR /&gt;
something&lt;BR /&gt;
&amp;gt; that there is no easier way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; And thank's one more time for your&lt;BR /&gt;
&amp;gt; suggestions. I'll try to use them.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Justavian" &lt;RPRIDDY&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:081E897285A91F8550B2AE63777F1EE6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; As far as i know, there's no way to directly find out if an object was&lt;BR /&gt;
&amp;gt; &amp;gt; ACTUALLY modified.  I've been struggling with this fact for a long time.&lt;BR /&gt;
&amp;gt; In&lt;BR /&gt;
&amp;gt; &amp;gt; my particular case, however, all i need to know is whether the object&lt;BR /&gt;
has&lt;BR /&gt;
&amp;gt; &amp;gt; been moved or not.  For that i store a point in my custom object -&lt;BR /&gt;
&amp;gt; &amp;gt; m_pntLastPosition.  Everytime the objectModified( ) function gets fired,&lt;BR /&gt;
i&lt;BR /&gt;
&amp;gt; &amp;gt; check that variable.  If my NEW point doesn't match the LAST one, then i&lt;BR /&gt;
&amp;gt; &amp;gt; know the object has been moved.  What's the specific property that you&lt;BR /&gt;
&amp;gt; need&lt;BR /&gt;
&amp;gt; &amp;gt; to be aware of?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Another possible solution that i considered was to override the&lt;BR /&gt;
functions&lt;BR /&gt;
&amp;gt; in&lt;BR /&gt;
&amp;gt; &amp;gt; my custom object that correspond to the properties i'm concerned about.&lt;BR /&gt;
&amp;gt; &amp;gt; What i mean by that is that if i need to know if an object gets moved, i&lt;BR /&gt;
&amp;gt; can&lt;BR /&gt;
&amp;gt; &amp;gt; override the TransfromBy() function, and toggle a m_bWasModified&lt;BR /&gt;
boolean.&lt;BR /&gt;
&amp;gt; &amp;gt; Then, when objectModified gets called, i can identify that some sort of&lt;BR /&gt;
&amp;gt; &amp;gt; significant change was made.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Mindaugas Bliudzius" &lt;SHASHAS&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:EAB401FFD30640080421860B21AEFE90@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Hi,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; How to chek is object modified, because objectModified() event occurs&lt;BR /&gt;
&amp;gt; when&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; object was opened, but it may be still the same &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I need only thows&lt;BR /&gt;
&amp;gt; &amp;gt; objects&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; witch let say coordinates changed (not just was opened and closed).&lt;BR /&gt;
Any&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; idea?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;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;/SHASHAS&gt;&lt;/RPRIDDY&gt;&lt;/SHASHAS&gt;</description>
      <pubDate>Sun, 23 Feb 2003 06:25:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/is-realy-object-modified/m-p/316618#M37513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-23T06:25:07Z</dc:date>
    </item>
  </channel>
</rss>

