edmiCopyModelBN

EdmiError edmiCopyModelBN(SdaiString sourceModelRepositoryName,
                           SdaiString sourceModelName, 
                           SdaiString targetModelRepositoryName, 
                           SdaiString targetModelName, 
                           SdaiModel  *targetModelId); 


Makes a copy of a model, i.e. creates a new model and copies all instances in the source model to the new model (target model). This function is only applicable to data models. The executing EDMuser must have read access to the source model. The source model will be unchanged by this operation. The source model can be open or closed when this function is executed. The new created target model will have the same underlying schema as the source model, i.e. the source and target model will be two different populations of the same Express schema.

 

Arguments


TypeNameComment
SdaiString

sourceModelRepositoryName

Specifies the name of the data repository in the EDMdatabase that holds the source model for the copy operation. Repository names are case sensitive.

SdaiString

sourceModelName

Specifies the name of the data model in the EDMdatabase that will be the source model for the copy operation. The combination of repository name and model name will uniquely identify a model in an EDMdatabase. Model names are case sensitive.

SdaiString

targetModelRepositoryName

Specifies the name of the data repository in the EDMdatabase that will hold the new model (target model) created by this operation. Repository names are case sensitive.

SdaiString

targetModelName

Specifies the name of the new target model that will be created by this operation. A model name must start with a letter and the rest of the model name can optionally be any mix of any alphanumeric character and the underscore character. Model names are case sensitive. A model name must be unique within the repository that holds the model.

SdaiModel

targetModelId

An address to a variable that will receive a numeric modelID that uniquely identifies the created target model in the EDMdatabase.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

EdmiError rstat;
 ...
 if (rstat = edmiCopyModelBN ("DataRepository",
 "Bumper_AAXC98", 
 "AP214", 
 "Bumper_AAXC98", 
 &targetModelId)) { 
 /* Error in operation */ 
 printf("\nError in edmiCopyModelBN: %s", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 ...

 

See also

Filter by label

There are no items with the selected labels at this time.