sdaiCloseModel
Close an open model in the EDMdatabase. No further access to the actual model is permitted before it is opened again with the sdaiOpenModel or sdaiOpenModelBN function. The edmiGetModelOpenMode function will return edmNOACCESS when applied on a closed model.
A dictionary model cannot be closed as long as a data model of the particular dictionary model is open.
When the actual model to be closed has a STEP Identifier model connected, this connected STEP Identifier model will be closed as well by this operation.
See related functions: sdaiOpenModel , sdaiOpenModelBN
Header:
#include "sdai.h"
Prototype:
void sdaiCloseModel(SdaiModel model);
Arguments:
model |
A numeric modelID that uniquely identifies a model in the EDMdatabase. |
Returns:
Void – use sdaiErrorQuery function to check for error in operation.
Example:
SdaiModel model;
SdaiErrorCode errCode;
...
sdaiCloseModel(model);
errCode = sdaiErrorQuery();
if (errCode) {
/* Error in operation */
printf("\nError: %s in sdaiCloseModel \n",
edmiGetErrorText(errCode));
goto error;
}
. . .