edmiDeleteModelContents

EdmiError edmiDeleteModelContents(SdaiModel model);

Deletes the content of the specified model, i.e., the actual model will have exactly the same contents after this function is executed as immediately after the model is created by any of the following operations: sdaiCreateModel , sdaiCreateModelBN , edmiCreateModel or edmiCreateModelBN. This function is only applicable to data models. The actual data model must be open for write access before this command can be successfully executed.

Arguments


TypeNameComment
SdaiModel

model

A numeric modelID that uniquely identifies the data model in the EDMdatabase to delete the contents of. The modelID is returned from the functions: sdaiCreateModel , sdaiCreateModelBN , sdaiOpenModelBN , edmiGetModel , edmiGetModelBN , sdaiGetInstanceModel

Return Value


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

Options


 

Example


 

 EdmiError rstat;
 SdaiModel model;
 ...
 if (rstat = edmiDeleteModelContents (model)) {
 /* Error in operation */ 
 printf("\nError in edmiDeleteModelContents: %s\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 . . .

 

See also

Filter by label

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

Â