Test if the active project has been modified since the last saving or loading.
IsModified()
True if the active project has been modified else False.
EX1
# For this example to run, create a project, save it, and then modify it # (for example by modifying the value in a worksheet cell) import PyOrigin if(PyOrigin.IsModified()): print('Project has been modified') else: print('Project has NOT been modified') # Now save the project: PyOrigin.Save('D:\\test.opj') # Now it must be NOT modifed because we saved it above. if(PyOrigin.IsModified()): print('Project has been modified') else: print('Project has NOT been modified')
SetModified