<?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: How to check unsaved changes? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132801#M6695</link>
    <description>&lt;BLOCKQUOTE&gt;equilibrium wrote:&lt;BR /&gt;May be I must register event types?&lt;/BLOCKQUOTE&gt;
Yes, you do (element editing and element creation). It would pay to read the entire Notification Manager section to understand how this works. Note &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Notify_CatchNewElement&lt;E&gt;&lt;/E&gt; to monitor the creation of new elements.</description>
    <pubDate>Tue, 19 May 2009 14:40:22 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2009-05-19T14:40:22Z</dc:date>
    <item>
      <title>How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132792#M6686</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I open some project in ArchiCAD. Modify it, but not save.&lt;BR /&gt;Than I open another project using my Add-On.&lt;BR /&gt;&lt;BR /&gt;In this case I lost all my changes in first project.&lt;BR /&gt;How I can check unsaved changes in project? Or may be open a new project with checking unsaved changes automatically? Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:15:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132792#M6686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132793#M6687</link>
      <description>Just for more information: did you open the new project using the automate function APIDo_OpenID?&lt;BR /&gt;
&lt;BR /&gt;
Yeah, I don't see an event handler function in a quick search, nor any type of state test.&lt;BR /&gt;
&lt;BR /&gt;
I searched for 'dirty', since a 'dirty flag' is a pretty standard term to tag a file that has been modified.  No go.  Searched for 'changed' and 'modified', and only came up with handlers for dialog items.&lt;BR /&gt;
&lt;BR /&gt;
Ralph? &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Wed, 13 May 2009 15:52:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132793#M6687</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2009-05-13T15:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132794#M6688</link>
      <description>Hi, Karl&lt;BR /&gt;
&lt;BR /&gt;
Yes, I open the new project using the automate function APIDo_OpenID.</description>
      <pubDate>Thu, 14 May 2009 08:03:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132794#M6688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-14T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132795#M6689</link>
      <description>&lt;BLOCKQUOTE&gt;equilibrium wrote:&lt;BR /&gt;How I can check unsaved changes in project? Or may be open a new project with checking unsaved changes automatically&lt;/BLOCKQUOTE&gt;
No, sorry. You could attempt to track the user editing elements. but that's no guarantee.</description>
      <pubDate>Thu, 14 May 2009 09:48:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132795#M6689</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-05-14T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132796#M6690</link>
      <description>I understand, Ralph, thanks a lot!&lt;BR /&gt;
It's inconveniently, but I will try to ask user check unsaved changes.</description>
      <pubDate>Thu, 14 May 2009 15:14:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132796#M6690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-14T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132797#M6691</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
No, sorry. You could attempt to track the user editing elements. but that's no guarantee.&lt;/BLOCKQUOTE&gt;Excuse me, Ralph. Can you advise functions for track the user editing elements and may be some another changes? Thanks</description>
      <pubDate>Mon, 18 May 2009 12:44:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132797#M6691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-18T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132798#M6692</link>
      <description>&lt;BLOCKQUOTE&gt;equilibrium wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
No, sorry. You could attempt to track the user editing elements. but that's no guarantee.&lt;/BLOCKQUOTE&gt;Excuse me, Ralph. Can you advise functions for track the user editing elements and may be some another changes? Thanks&lt;/BLOCKQUOTE&gt;
Take a look at &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Notify_InstallElementObserver&lt;E&gt;&lt;/E&gt;</description>
      <pubDate>Mon, 18 May 2009 13:41:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132798#M6692</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-05-18T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132799#M6693</link>
      <description>Thanks</description>
      <pubDate>Mon, 18 May 2009 15:27:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132799#M6693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-18T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132800#M6694</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;Take a look at &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Notify_InstallElementObserver&lt;E&gt;&lt;/E&gt;&lt;/BLOCKQUOTE&gt;
I'm use example from docs for API 12.&lt;BR /&gt;
&lt;BR /&gt;
First, it's not compiled for API 12. For example, API_NotifyElementType does not have 'typeID' field. But, so it is not important as&lt;BR /&gt;
&lt;BR /&gt;
Second, I could not to catch any events. I just try to show message box when any event occur, but nothing happen when I add new element, move, copy or delete.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
May be I must register event types?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 19 May 2009 10:00:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132800#M6694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-19T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132801#M6695</link>
      <description>&lt;BLOCKQUOTE&gt;equilibrium wrote:&lt;BR /&gt;May be I must register event types?&lt;/BLOCKQUOTE&gt;
Yes, you do (element editing and element creation). It would pay to read the entire Notification Manager section to understand how this works. Note &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Notify_CatchNewElement&lt;E&gt;&lt;/E&gt; to monitor the creation of new elements.</description>
      <pubDate>Tue, 19 May 2009 14:40:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132801#M6695</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2009-05-19T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to check unsaved changes?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132802#M6696</link>
      <description>Thanks a lot</description>
      <pubDate>Wed, 20 May 2009 07:20:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-check-unsaved-changes/m-p/132802#M6696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T07:20:25Z</dc:date>
    </item>
  </channel>
</rss>

