Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Deletes the specified EDMruleSchema from the EDMdatabase. This operation can be performed independent of other EDMruleSchema and independent of any number of existing populations (data models) of the belonging Express schema.
All EDMruleSchema of a dictionary model will implicitly be deleted when the actual dictionary model is deleted by one of the following operations: edmiDeleteSchema , sdaiDeleteModel , edmiDeleteModelBN
Related functions: edmiDefineRuleSchema, sdaiDeleteModel , edmiDeleteModelBN , edmiDeleteSchema
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteRuleSchema(SdaiString schemaName,
                                SdaiString ruleSchemaName); 
Arguments:

schemaName

Specifies the name of the Express schema to which the Rule Schema applies. Schema names are case insensitive. This Express schema must exist as a dictionary model in the EDMdatabase.

ruleSchemaName

Specifies the name of the RuleSchema to delete from the EDMdatabase. Rule Schema names are case insensitive.

Returns:
A completion code of data type 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;
...
if (rstat = edmiDeleteRuleSchema("IFC2X", "Norwegian_BC2498A1")) {
/* Error in operation */ 
printf("\nError: %s in edmiDeleteRuleSchema\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
/* Specified Rule Schema is permanently deleted from database */

  • No labels