45-degree Chamfer Dimensions
You can create 45-degree chamfer dimensions by referencing one of the following items:
• Edges, including solid or surface edges, silhouette edges, curves, and sketches.
• Surfaces
• Revolve surfaces
The functions described in this section provide access to the display style of 45-degree chamfer dimensions in a solid. These functions can also be used to access the display style of the chamfer dimension in a drawing, where the dimension is created in a solid and is displayed in a drawing. To work with dimensions shown in a drawing, pass the name of the drawing in the input argument drawing in the functions.
|
Note:
|
The default display of a 45-degree chamfer dimension depends upon the setting of the config.pro option, default_chamfer_text.
|
Functions Introduced:
The functions
ProDimensionChamferLeaderGet() and
ProDimensionChamferLeaderSet() retrieve and set the style of the leader for the specified 45-degree chamfer dimension. The valid values are as follows:
• PRO_DIM_CHMFR_LEADER_STYLE_NORMAL—Specifies that the leader of a chamfer dimension is normal to the chamfer edge (ASME, ANSI, JIS, ISO Standard).
• PRO_DIM_CHMFR_LEADER_STYLE_LINEAR—Specifies that the leader of a chamfer dimension has linear style of display.
• PRO_DIM_CHMFR_LEADER_STYLE_DEFAULT—Specifies that the chamfer dimension leader style should be displayed using the default value set in the detail option default_chamfer_leader_style.
The functions
ProDimensionChamferTextGet() and
ProDimensionChamferTextSet() retrieve and set the dimension scheme for the specified 45-degree chamfer dimension. The valid values are as follows:
• PRO_DIM_CHMFRSTYLE_CD = 0—Specifies that the chamfer dimension text should be displayed in the C(Dimension value) format (JIS/GB Standard).
• PRO_DIM_CHMFRSTYLE_D_X_45= 1—Specifies that the chamfer dimension text should be displayed in the (Dimension value) x45 format (ISO/DIN Standards).
• PRO_DIM_CHMFRSTYLE_CUSTOM = 3— Specifies that the chamfer dimension text should be displayed in a customized format.
• PRO_DIM_CHMFRSTYLE_DEFAULT = 4—Specifies that the chamfer dimension text should be displayed using the default value set in the drawing detail option default_chamfer_text.
• PRO_DIM_CHMFRSTYLE_45_X_D = 6—Specifies that the chamfer dimension text should be displayed in the 45 X (Dimension value) format (ASME/ANSI Standards).
• PRO_DIM_CHMFRSTYLE_D = 9— Specifies that the chamfer dimension text should be displayed in the (Dimension value) format.
• PRO_DIM_CHMFRSTYLE_D_X_45_ASME = 10— Specifies that the chamfer dimension text should be displayed in the (Dimension value) X 45 format.
The functions
ProDimensionConfigGet() and
ProDimensionConfigSet() retrieve and set the dimension configuration for chamfer dimensions. The dimension configuration defines the style in which the dimension must be displayed. The valid values are as follows:
• PRO_DIMCONFIG_LEADER—Creates the dimension with a leader.
• PRO_DIMCONFIG_LINEAR—Creates a linear dimension.
• PRO_DIMCONFIG_CENTER_LEADER—Creates the dimension with the leader note attached to the center of the dimension leader line.