Opens an existing model file from disk without saving changes in the previous model, if any. (Use db.save first.)
filename | string | Name and location of model file to open |
readOnly | optional 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. |
iArch | optional 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 value | IFDatabase | The open model |
Back to Modeller
Back to Overview