Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiDeleteModelContents(SdaiModel model);
|
<Description>
Arguments
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Option | Comment |
---|
Example
...
Code Block | ||
---|---|---|
| ||
<example> |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
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:
Type | Name | Comment |
SdaiModel | model | A numeric modelID that uniquely identifies the data model in the EDMdatabase to delete the contents of. |
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;
}
. . .