Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagecpp
themeConfluence
EdmiError edmiDeleteModelContents(SdaiModel model);

<Description>

Arguments

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

OptionComment

Example

...

 

Code Block
languagecpp
 <example>

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"


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.
Related functions: edmiDeleteModelContentsBN , sdaiCreateModel , sdaiCreateModelBN , edmiCreateModel, edmiCreateModelBN , sdaiDeleteModel , edmiDeleteModel , edmiDeleteModelBN .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteModelContents(SdaiModel model);
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

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE  
EdmiError rstat;
SdaiModel model;
...
if (rstat = edmiDeleteModelContents (model)) {
/* Error in operation */ 
printf("\nError in edmiDeleteModelContents: %s\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
. . .