Modeller.openDatabase


openDatabase(filename, [readOnly], [iArch])

Opens an existing model file from disk without saving changes in the previous model, if any. (Use db.save first.)

filenamestringName and location of model file to open
readOnlyoptional boolean Open the database read-only. If the file on disk is read-only, and this flag is given false, the function will fail with an error message. If the flag is given true, temporary changes are allowed, but it will not be possible to press the 'save' button ('save as' is allowed). For results files this flag is ignored, as it is never possible to modify results files on disk.
iArchoptional integer Only appropriate to mys files. The default 0 means 'auto-detect'. 32 means '32 bit file'. 64 means '64 bit file'. No other values are currently supported
Return valueIFDatabaseThe open model

Back to Modeller

Back to Overview