edmiSdaiErrorsOnly


 

SdaiOnOff edmiSdaiErrorsOnly(SdaiOnOff OnOff);

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.

Arguments


TypeNameComment
SdaiOnOff

OnOff

 

The two following values can be specified:

  • sdaiON: The EDMinterface specified error codes can be issued.
  • sdaiOFF: The EDMinterface specific error codes should not be issued, only the error codes defined in ISO 10303-22.

Return Value


 SdaiOnOff  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.

Options


 

Example


 

 SdaiOnOff sdaiErrorsOnlyState;
 . . .
 sdaiErrorsOnlyState = edmiSdaiErrorsOnly(sdaiOFF);
 . . .
 /* Reset EDMinterface extended error code state */
 edmiSdaiErrorsOnly(sdaiErrorsOnlyState);
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.