Determine Whether a Project is Saved or Not

Determine Whether a Project is Saved or Not

Siff3D
Explorer Explorer
402 Views
2 Replies
Message 1 of 3

Determine Whether a Project is Saved or Not

Siff3D
Explorer
Explorer

Hi All,

 

I'm looking for a way to determine whether the current project is saved or not. By "saved " I mean that the "Save" button was pressed and there is no "*" displayed next to the project name.

 

I tried using the Document.IsSaved property (https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-6beff12d-3287-4cd8-a9bb-e6da2a066c01), but it is set to False only if the document is brand-new and was never saved and it will be set to True after the first Save (which should be Save As...).

 

Thank you!

0 Likes
Accepted solutions (1)
403 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

You want to use the Document.isModified property. It indicates if any changes have been made since the document was opened or last saved.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 3

Siff3D
Explorer
Explorer

Thank you @BrianEkins!

 

I don't know how I missed it! I checked all properties several times, but apparently, I glazed over isModified since it it right above the isSaved property! 😥

0 Likes