IsModified property sets or clears modified flag for currently open Origin project without saving it.
VB: Property Get/Let IsModified As Boolean
C++: bool IsModified
C#: bool IsModified
Dim oApp As Origin.ApplicationSI Set oApp = GetObject("", "Origin.ApplicationSI") Dim bb As Boolean bb = oApp.Load("c:\\project1") bb = oApp.Reset() 'change current project bb = oApp.IsModified 'True oApp.IsModified = False 'clear modified flag bb = oApp.Load("c:\\project1") 'restore to saved version - Save changes dialog absent
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW filePath = app.Path(app.APPPATH_PROGRAM) + "Samples\\Curve Fitting\\" + "2D Bin and Fit.opj" app.Load(filePath) print("Before Reset, IsModified = ", app.IsModified) app.Reset() print("After Reset, IsModified = ", app.IsModified)
8.0SR2
Load| Save