edmiRenameModel
EdmiError edmiRenameModel(SdaiModel model, SdaiString newModelName);
Renames the specified data model in the EDMdatabase. This function is only applicable to data models. Only the owner of a model can rename it.
Arguments
Type | Name | Comment |
SdaiModel | model | A numeric modelID that uniquely identifies the model in the EDMdatabase to rename. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel |
SdaiString | newModelName | Specifies the new name of the specified model. The model name must be unique within the repository that holds the model. The model name must start with a letter and the rest of the model name can be any mix of alphanumeric characters and the underscore character. Model names are case sensitive. |
Return Value
Options
Â
Example
Â
EdmiError rstat; SdaiModel model; . . . if (rstat = edmiRenameModel (model, "Building_AAXCD458C")) { /* Error in operation */ printf("\nError: %s in edmiRenameModel \n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â