How to check unsaved changes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-13
02:47 PM
- last edited on
‎2023-08-03
05:15 PM
by
Doreena Deng
Than I open another project using my Add-On.
In this case I lost all my changes in first project.
How I can check unsaved changes in project? Or may be open a new project with checking unsaved changes automatically? Thanks
- Labels:
-
Add-On (C++)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-13 05:52 PM
Yeah, I don't see an event handler function in a quick search, nor any type of state test.
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.
Ralph?
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-14 10:03 AM
Yes, I open the new project using the automate function APIDo_OpenID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-14 11:48 AM
equilibrium wrote:No, sorry. You could attempt to track the user editing elements. but that's no guarantee.
How I can check unsaved changes in project? Or may be open a new project with checking unsaved changes automatically
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-14 05:14 PM
It's inconveniently, but I will try to ask user check unsaved changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-18 02:44 PM
Ralph wrote:Excuse me, Ralph. Can you advise functions for track the user editing elements and may be some another changes? Thanks
No, sorry. You could attempt to track the user editing elements. but that's no guarantee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-18 03:41 PM
equilibrium wrote:Take a look atRalph wrote:Excuse me, Ralph. Can you advise functions for track the user editing elements and may be some another changes? Thanks
No, sorry. You could attempt to track the user editing elements. but that's no guarantee.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-18 05:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-19 12:00 PM
Ralph wrote:I'm use example from docs for API 12.
Take a look atACAPI_Notify_InstallElementObserver
First, it's not compiled for API 12. For example, API_NotifyElementType does not have 'typeID' field. But, so it is not important as
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.
May be I must register event types?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-05-19 04:40 PM
equilibrium wrote:Yes, you do (element editing and element creation). It would pay to read the entire Notification Manager section to understand how this works. Note
May be I must register event types?
Central Innovation