Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2023.2 Object Library
PCDLRN ActiveX DLL > OldBasic Object : CatchMotionError Method
A reference to the integer that will be set to a non-zero value if a CMM error occurs. When error catching is turned on, this integer is automatically initialized to zero. Only used when tog is set to PCD_CATCH_IN_INTEGER.
CatchMotionError Method
Description
Turns On/Off Catching of CMM motion errors
Syntax
Visual Basic
Public Sub CatchMotionError( _
   ByVal tog As CATCHTYPE, _
   ByRef catch_error As Long _
) 
Parameters
tog
ValueDescription
PCD__OFFTurns off error catching. The basic script will no longer be notified when motion errors occur.
PCD_CATCH_IN_INTEGERAll subsequent motion errors will cause the integer passed by reference as the catch_error parameter to be set to a non-zero value.
PCD_TRIGGER_ERRORAll subsequent motion errors will generate runtime error 1001. These error may be caught using the On Error statement.
catch_error
A reference to the integer that will be set to a non-zero value if a CMM error occurs. When error catching is turned on, this integer is automatically initialized to zero. Only used when tog is set to PCD_CATCH_IN_INTEGER.
See Also