<?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: Trying to read modifing item in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5994643#M10435</link>
    <description>&lt;P&gt;You need to be careful with assumptions during event handling.&amp;nbsp; Just because one event is being handled, doesn't mean other object are finished being modified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a short list of guidelines in the ARX development guide.&amp;nbsp; In short:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do not rely on the sequence of notification firing&lt;/LI&gt;
&lt;LI&gt;Do not rely on the sequence of operations (function calls) between notifications.&lt;/LI&gt;
&lt;LI&gt;Do not use any user interaction functions in your notification callback function&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 18 Jan 2016 22:07:55 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2016-01-18T22:07:55Z</dc:date>
    <item>
      <title>Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993675#M10431</link>
      <description>&lt;P&gt;Hi, let's say that I select all the entities in the drawing (CTRL + A). And then move them to new position. I, of course, get objectModified reactor, and now my question starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get in objectModified a line. And now, I have to check some data from other entity. But I cannot open the other entity, because I get "eWasOpenedForWrite" error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how should I do this properly?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:06:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993675#M10431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-18T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993810#M10432</link>
      <description>Remove all reactors with (vlr-remove-all)</description>
      <pubDate>Mon, 18 Jan 2016 14:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993810#M10432</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2016-01-18T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993899#M10433</link>
      <description>How should that help? I need those reactors.</description>
      <pubDate>Mon, 18 Jan 2016 14:49:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993899#M10433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-18T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993912#M10434</link>
      <description>If you want them, never mind then. &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:55:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5993912#M10434</guid>
      <dc:creator>wispoxy</dc:creator>
      <dc:date>2016-01-18T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5994643#M10435</link>
      <description>&lt;P&gt;You need to be careful with assumptions during event handling.&amp;nbsp; Just because one event is being handled, doesn't mean other object are finished being modified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a short list of guidelines in the ARX development guide.&amp;nbsp; In short:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do not rely on the sequence of notification firing&lt;/LI&gt;
&lt;LI&gt;Do not rely on the sequence of operations (function calls) between notifications.&lt;/LI&gt;
&lt;LI&gt;Do not use any user interaction functions in your notification callback function&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 18 Jan 2016 22:07:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5994643#M10435</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2016-01-18T22:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5995203#M10436</link>
      <description>&lt;P&gt;OK, so how should I do it properly? When an item is under modification (objectModified is fired) I need to know some data from some other item, that can be modified to. So how should I do it properly?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 10:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5995203#M10436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-19T10:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read modifing item</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5995235#M10437</link>
      <description>&lt;P&gt;Could it be that this other entity (that ist open for write) was opened by yourself?&lt;/P&gt;&lt;P&gt;In that case you should check whether it is required to have it open for write. Maybe you can close it before you modify the other entity.&lt;/P&gt;&lt;P&gt;Or if you have access to the entity-pointer you could also use it directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach is just to store the ObjectId of the modified object somewhere in your docdata and perform your action later - i.e. in commandEnded() or whatever makes sense to you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/trying-to-read-modifing-item/m-p/5995235#M10437</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2016-01-19T11:03:06Z</dc:date>
    </item>
  </channel>
</rss>

