where <location> is the location in the database of the model you want to load. The location is a long string that starts with
dbmodel:///.
The function mmsave allows you to save a model to a database using the Model Manager. In case you have open a model from a database as described in the section
Loading a Model Saved Using the Model Manager you can directly save the model as a version using the command below:
where <commit message> is the text you want to set as commit.
where type can either be
version or
draft and
<branchvar> is the branch variable defining the branch in the database where to save the model.
where <brname>,
<repname>, and
<dbname> are the name of the branch, the repository, and the database of interest.
The dat variable is a struct array that contains information about the model (or file). In order to open the first returned result (assuming it is a model and not a file) execute this command
mmmodelinfo can be called with a model variable as argument. In case you have opened a model either from an MPH file or from Model Manager you can use
mmmodelinfo to determine where it has been loaded from since
info will contain the location either as a filename or as a location string.
cm is a commit object and
msg is a struct with information about the commit that includes commit comment, saved date and time information and the name of the user who performed the commit.