You access the Model Manager API using the utility class DatabaseApiUtil and its static method
api. This method returns a
DatabaseApi instance that is used, for example, to list all databases configured in the COMSOL Desktop, connect to a configured database, or to directly obtain the model version corresponding to the model opened in the COMSOL Desktop.
Get the file version corresponding to a file location URI string. Such a string can be obtained, for example, by selecting Copy Location (
) in the context menu for a file version in the Model Manager workspace. You can also obtain it by selecting
Copy Location (
) in the
Location menu(
) for a model tree node with a
Filename field in the Model Builder or Application Builder workspaces.
Write the label of all configured databases to the Debug Log window in the Application Builder workspace using the
debugLog method from the Method Editor’s built-in method library.