edmiDeleteOpenModel
EdmiError edmiDeleteModel(SdaiModel modelId);
Deletes the specified model in the EDMdatabase. The actual model can be open or closed when this operation is performed. This operation is equal to the sdaiDeleteModel ,and edmiDeleteModelBN operations, except that the actual model can be open when this operation is performed.
Improved performance is the only reason for implementing this operation. 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
Type | Name | Comment |
SdaiModel | modelId | A numeric modelID that uniquely identifies the model to be deleted. |
Return Value
Options
Â
Example
Â
 EdmiError rstat; SdaiModel modelId; ... if (rstat = edmiDeleteModel (modelId)) { /* Error in operation */ printf("\nError in edmiDeleteModel: %s\n", edmiGetErrorText(rstat)); goto error; } . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â