Defines whether the full range of EDMinterface error codes can be returned in an EDMinterface operation or only the error codes defined in ISO 10303-22: The Standard Data Access Interface (SDAI).
The EDMinterface defines many more error codes than the few defined in ISO 10303-22 to give more detailed and descriptive information about errors and exceptions in EDMinterface operations. This function is used to turn on or off the issuing of the EDMinterface specific error codes.
See the include file sdai.h for a detailed list of all EDMinterface error codes and corresponding error text.
Related functions: edmiGetErrorText
Header:
#include "sdai.h"
Prototype:
SdaiOnOff edmiSdaiErrorsOnly(SdaiOnOff OnOff);
Arguments:
OnOff |
The two following values can be specified: |
Returns:
Returns the current status of this facility at the invocation of the operation. The returned value is of type SdaiOnOff and can have the following two values:
sdaiON: EDMinterface specific error codes was enabled at the invocation of the function.
sdaiOFF: EDMinterface specific error codes was disabled at the invocation of the function Arguments.
EXAMPLE
SdaiOnOff sdaiErrorsOnlyState;
. . .
sdaiErrorsOnlyState = edmiSdaiErrorsOnly(sdaiOFF);
. . .
/* Reset EDMinterface extended error code state */
edmiSdaiErrorsOnly(sdaiErrorsOnlyState);
. . .