User's Guide > Dimensions and Parameters > Dimension Objects > 45 Degree Chamfer Dimensions
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 methods described in this section provide access to the display style of 45- degree chamfer dimensions in a solid. These methods 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 methods.
* 
The default display of a 45-degree chamfer dimension depends upon the setting of the config.pro option, default_chamfer_text.
Methods Introduced:
The methods wfcWDimension::GetChamferLeaderStyle and wfcWDimension::SetChamferLeaderStyle retrieve and set the style of the leader for the specified 45-degree chamfer dimension using the enumerated type wfcDimChamferLeaderStyle. The valid values are as follows:
wfcDIM_CHMFR_LEADER_STYLE_NORMAL—Defines the leader of the chamfer dimension normal to the chamfer edge (ASME, ANSI, JIS, ISO Standard).
wfcDIM_CHMFR_LEADER_STYLE_DEFAULT—Defines that the chamfer dimension leader style should be displayed using the default value.
The methods wfcWDimension::GetConfiguration and wfcWDimension::SetConfiguration retrieve and set the dimension configuration for chamfer dimensions using the enumerated type wfcDimLeaderConfig. The dimension configuration defines the style in which the dimension must be displayed. The valid values are as follows:
wfcDIMCONFIG_LEADER—Creates the dimension with a leader.
wfcDIMCONFIG_LINEAR—Creates a linear dimension.
wfcDIMCONFIG_CENTER_LEADER—Creates the dimension with the leader note attached to the center of the dimension leader line.
The methods wfcWDimension::GetChamferStyle and wfcWDimension::SetChamferStyle retrieve and set the dimension scheme for the specified 45-degree chamfer dimension using the enumerated type wfcDimChamferStyle. The valid values are as follows:
wfcDIM_CHMFRSTYLE_CD—Specifies that the chamfer dimension text should be displayed in the C(Dimension value) format (JIS/GB Standard).
wfcDIM_CHMFRSTYLE_D_X_45—Specifies that the chamfer dimension text should be displayed in the (Dimension value) X 45 format (ISO/DIN Standards).
wfcDIM_CHMFRSTYLE_DEFAULT—Specifies that the chamfer dimension text should be displayed using the default value set in the drawing detail option default_chamfer_text.
wfcDIM_CHMFRSTYLE_45_X_D—Specifies that the chamfer dimension text should be displayed in the 45 X (Dimension value) format (ASME/ANSI Standards).
Was this helpful?