Each AllplanBridge command returns a corresponding error information, which should be handled by the calling procedure. Most commands return a TCL array with the necessary information. If the return value is an OBJID, then this is 0 in case of error.
The following example shows the call of the command to query the list of axes:
array set axes [ABMAXES XGET LIST]
if { $axes(error) != 0 } { ABMERROR "Error: " $axes(error) " Info: " $axes(info) }
The call is not correct. The error code is caught and an error message is written.
array set axes [ABMAXES GET LIST]
ABMINFO "First: " $axes(first) \
" Last: " $axes(last) \
" Count: " $axes(count) \
" Error: " $axes(error) \
" Info: " $axes(info)
The call is correct. The information about the list of axes is logged.
|
(C) ALLPLAN GmbH |
Privacy policy |