Is there a way to check for unsaved edits?

154
2
Jump to solution
12-13-2018 08:43 AM
Highlighted
New Contributor III

I have an add-in that imports data using the JSON To Features conversion tool, but when there are unsaved edits it will fail. I was wondering if there is a way to check if the user has unsaved edits so I can tell them to save before importing their data. For now I'm just using a try catch block.

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

This will tell you if the project has unsaved edits.

Project.Current.HasEdits

View solution in original post

2 Replies
Highlighted
Esri Regular Contributor

This will tell you if the project has unsaved edits.

Project.Current.HasEdits

View solution in original post

Highlighted
New Contributor III

Thanks Rich!

Reply
0 Kudos