<?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 openedForModify in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288307#M26893</link>
    <description>In my application I have occasion to insert some custom blocks w/attributes.
I want to prevent users from modifying these through any means other than the
interface I provide. At first it seemed obvious that I needed to attach an 
object reactor to them and trap any mofifications. However I ran into the same 
situation as was posted here some time ago, namely that I couldnt modify the 
blocks during the reactor call because there is always an "eOpenforNotify".
After reading some more posts I realized that the object reactor needs only to 
save the objectid of the block, then I would use an editor reactor to see if 
this objectid has been modified and make my changes there.
However, it seems there must be a better way, since I want to prevent ANY 
modification, I thought I would use the "Reactor::openedForModify" event and 
simply do a return and skip the base class function.
This didnt work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  and Acad definately didnt like it when I tried to close the 
object during this call!
So, my question is, how do I prevent any and all modifications to an entity?

Thanks,
Perry</description>
    <pubDate>Wed, 06 Apr 2005 16:02:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-04-06T16:02:58Z</dc:date>
    <item>
      <title>openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288307#M26893</link>
      <description>In my application I have occasion to insert some custom blocks w/attributes.
I want to prevent users from modifying these through any means other than the
interface I provide. At first it seemed obvious that I needed to attach an 
object reactor to them and trap any mofifications. However I ran into the same 
situation as was posted here some time ago, namely that I couldnt modify the 
blocks during the reactor call because there is always an "eOpenforNotify".
After reading some more posts I realized that the object reactor needs only to 
save the objectid of the block, then I would use an editor reactor to see if 
this objectid has been modified and make my changes there.
However, it seems there must be a better way, since I want to prevent ANY 
modification, I thought I would use the "Reactor::openedForModify" event and 
simply do a return and skip the base class function.
This didnt work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  and Acad definately didnt like it when I tried to close the 
object during this call!
So, my question is, how do I prevent any and all modifications to an entity?

Thanks,
Perry</description>
      <pubDate>Wed, 06 Apr 2005 16:02:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288307#M26893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-06T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288308#M26894</link>
      <description>"perry" &lt;PERRY_LEETS&gt; wrote

&amp;gt; So, my question is, how do I prevent any and all modifications to an entity?

Put them on a locked layer.  There is no other rational way
to do it.


-- 
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Wed, 06 Apr 2005 16:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288308#M26894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-06T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288309#M26895</link>
      <description>Tony Tanzillo wrote:
&amp;gt; "perry" &lt;PERRY_LEETS&gt; wrote
&amp;gt; 
&amp;gt; 
&amp;gt;&amp;gt;So, my question is, how do I prevent any and all modifications to an entity?
&amp;gt; 
&amp;gt; 
&amp;gt; Put them on a locked layer.  There is no other rational way
&amp;gt; to do it.

A locked layer can be easily unlocked.
Guess I will try calling "Undo" from the editor reactor...
Perry&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Wed, 06 Apr 2005 17:53:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288309#M26895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-06T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288310#M26896</link>
      <description>&amp;gt; Guess I will try calling "Undo" from the editor reactor...

I already told you that there is no way to do it,
which takes into account the kludge you mention
above.


-- 
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"perry" &lt;PERRY_LEETS&gt; wrote in message news:425421e6$1_3@newsprd01...
&amp;gt; Tony Tanzillo wrote:
&amp;gt;&amp;gt; "perry" &lt;PERRY_LEETS&gt; wrote
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt;So, my question is, how do I prevent any and all modifications to an entity?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Put them on a locked layer.  There is no other rational way
&amp;gt;&amp;gt; to do it.
&amp;gt;
&amp;gt; A locked layer can be easily unlocked.&lt;/PERRY_LEETS&gt;&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Wed, 06 Apr 2005 19:03:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288310#M26896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-06T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288311#M26897</link>
      <description>Tony Tanzillo wrote:
&amp;gt;&amp;gt;Guess I will try calling "Undo" from the editor reactor...
&amp;gt; 
&amp;gt; 
&amp;gt; I already told you that there is no way to do it,
&amp;gt; which takes into account the kludge you mention
&amp;gt; above.
&amp;gt; 
&amp;gt; 
Kludge is my middle name!
I was able to do something similiar in VB, using events, moving objects 
back into place if they had been moved by a user...
Oh well.
Thanks again Tony</description>
      <pubDate>Thu, 07 Apr 2005 02:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288311#M26897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-07T02:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: openedForModify</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288312#M26898</link>
      <description>You can't do that in VB either. If the user runs a script or
some LISP, and it attempts to do something after it modifies
the entity, the script/lisp breaks.

In 2004 or later, this will not only not work consistently, it
will completely disable the ability to undo/redo.

-- 
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"perry" &lt;PERRY_LEETS&gt; wrote in message news:42549e50$1_2@newsprd01...
&amp;gt; Tony Tanzillo wrote:
&amp;gt;&amp;gt;&amp;gt;Guess I will try calling "Undo" from the editor reactor...
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; I already told you that there is no way to do it,
&amp;gt;&amp;gt; which takes into account the kludge you mention
&amp;gt;&amp;gt; above.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt; Kludge is my middle name!
&amp;gt; I was able to do something similiar in VB, using events, moving objects back into place if they had been moved by a
&amp;gt; user...
&amp;gt; Oh well.
&amp;gt; Thanks again Tony&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Thu, 07 Apr 2005 15:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/openedformodify/m-p/1288312#M26898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-07T15:26:04Z</dc:date>
    </item>
  </channel>
</rss>

