User's Guide > Drawings > Other Drawing Dimension Properties
Other Drawing Dimension Properties
Functions Introduced:
If you create a dimension which attaches only to draft entities in the drawing, the dimension may be associative or non-associative. This setting depends on the setting of the drawing setup option associative_dimensioning. The associative status of a dimension remains even when the setup option changes, so a drawing may contain dimensions of both types. The function ProDrawingDimIsAssociative() tells you whether or not a particular dimension is associative. Refer to the Drawing User's Guide for a fuller description of associative draft dimensions.
The function ProDrawingDimensionIsDisplayed() identifies whether a drawing dimension is displayed in the drawing.
The function ProDrawingDimensionIsToleranceDisplayed() identifies whether the tolerance value is displayed on the drawing dimension.
The function ProDrawingDimensionViewGet() tells you what drawing view a dimension is being displayed in. ProDrawingDimSwitchView() allows you to switch it's display to another view. Note that not all views will support the display of particular dimension.
The function ProDrawingDimensionPosGet() returns the position of the center of the text box for the specified dimension. The coordinates returned by this function cannot be used in the function ProDrawingDimensionMove(). Use the function ProDimlocationTextGet() instead of the function ProDrawingDimensionPosGet().
The function ProDrawingDimensionMove() allows you to move the dimension text to a new position on the drawing. Use the function ProDimlocationTextGet() to get the position before and after the move.
The function ProDrawingDualDimensionGet() identifies whether a drawing is using dual dimensioning, and also specifies the properties of the dual dimensioning.
The function ProDimensionDualOptionsGet() gets information about the display options for the specified dual dimension. In the input argument drawing, specify the drawing in which the dimension is displayed. To specify a dimension in owner model, specify the argument value as NULL. The output arguments are:
type—From Creo Parametric 5.0.0.0 onward, this argument is no longer supported. Specifies the type of display for primary and secondary dimension using the enumerated data type ProDualDimensionDisplayType. The valid values are:
PRO_SECONDARY_DIM_DISPLAY_OFF—Specifies that secondary dimension is not displayed in a dual dimension.
PRO_SECONDARY_DIM_DISPLAY_BOTTOM—Specifies that the secondary dimension must be placed below the primary dimension.
PRO_SECONDARY_DIM_DISPLAY_RIGHT—Specifies that the secondary dimension on the same line as the primary dimension, on the right side.
secondary_unit—From Creo Parametric 5.0.0.0 onward, this argument is no longer supported. Specifies the name of the unit for secondary dimension.
dim_decimals—Specifies the number of decimal places for the secondary dimension.
tol_decimals—Specifies the number of decimal places for tolerance in the secondary dimension.
Use the function ProDimensionDualOptionsSet() to set the display options for dual dimensions. From Creo Parametric 5.0.0.0 onward, the arguments type and secondary_unit are no longer supported for the function ProDimensionDualOptionsSet().
The function ProDrawingDimensionPathGet() extracts the component path for a dimension displayed in a drawing.
这对您有帮助吗?