Category Drawings and detail, Object ProDrawing

Function ProDrawingDimensionVisit


Description
Visits all dimensions stored in the specified drawing, i.e. all dimensions whose default names start with "dd", "rdd" or "add", therefore all dimensions created in the drawing when the config.pro option "create_drawing_dims_only" was set to YES.
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingDimensionVisit(
ProDrawing drawing
/* (In)
Handle of the drawing whose dimensions are to be visited.
*/
ProType type
/* (In)
PRO_DIMENSION or PRO_REF_DIMENSION
*/
ProDimensionVisitAction action
/* (In)
the function that gets called for each drawing dimension being visited.
*/
ProDimensionFilterAction filter
/* (In)
the function that gets called for each drawing dimension. This function decides whether the dimension should be visited or skipped. If NULL, all dimensions are visited using the action function.
*/
ProAppData data
/* (In)
caller-specified data that gets passed to the action and filter functions.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully visited all the model's dimensions.
PRO_TK_BAD_INPUTSThe function failed because one or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDNo drawing dimensions were visited.
PRO_TK_GENERAL_ERRORAn error occurred while locating the dimensions.
otherVisiting was stopped by the caller supplied functions with this error return.

Manual References:

  1. Drawings: Drawing Dimensions
  2. Annotations: Annotation Features and Annotations: Visiting Dimensions
  3. Annotations: Annotation Features and Annotations: Visiting Dimensions