Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...


TypeNameComment
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"