edmiDeleteModelBN


 

EdmiError edmiDeleteModelBN(SdaiRepository repository,
                             SdaiString     modelName); 

Deletes the specified model in the EDMdatabase. The actual model must be closed. A dictionary model cannot be deleted as long as there exists data models in the EDMdatabase that have the Express schema defined by the actual dictionary model as the underlying schema. All such data models must be deleted before the actual dictionary model can be deleted.  A dictionary model cannot be deleted as long as there exists Express-X dictionary models in the EDMdatabase that uses the actual dictionary model as the source model or the target model. All such Express-X dictionary models must be deleted before the actual dictionary model can be deleted. When the actual model to delete has a connected STEP Identifier model, this connected STEP Identifier model will be deleted as well by this operation.  When the actual model to delete is a dictionary model, then implicitly all belonging EDMquerySchema and EDMruleSchema will be deleted as well. Only the owner of a model can delete it.

Arguments


TypeNameComment
SdaiRepository

repository

A numeric repositoryID that uniquely identifies the repository in the EDMdatabase that holds the model to be deleted. This repository must be open.
The repositoryID is returned by the sdaiOpenRepository , sdaiOpenRepositoryBN and edmiGetRepository functions.

SdaiString

modelName

Specifies the name of the model to be deleted. Model names are case sensitive. A model name is unique in a repository, hence the combination of the arguments <repository> and <modelName> uniquely identifies a model in an 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;
 SdaiRepository repository;
 ...
 if (rstat = edmiDeleteModelBN (repository, "Bumper_AAXC956H")) {
 /* Error in operation */ 
 printf("\nError in edmiDeleteModelBN: %s\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 . . .

 

See also

Filter by label

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

Â