Dimension Location
The methods described in this section extract the dimension location and geometry in 3D space for solid model dimensions.
Dimension Entity Location
The following methods extract the locations of geometric endpoints for the dimension. You can calculate the dimension location plane, witness line, and dimension orientation vectors from these points. The location of the points is specified in the same coordinate system as the solid model.
Methods Introduced:
The method wfcDimLocation::GetNormal returns the vector normal to the dimensioning plane for a radial or diameter dimension. This normal vector should correspond to the axis normal to the arc being measured by the radial or diameter dimension.
The method wfcDimLocation::GetCenterLeaderInformation obtains the information about the center leader as a wfcCenterLeaderInformation object. The type of center leader is determined by the orientation of the dimension text.
Use the method wfcCenterLeaderInformation::GetCenterLeaderType to get the type of center leader. The valid values are defined in the enumerated data type wfcDimCenterLeaderType:
wfcDIM_CLEADER_CENTERED_ELBOW—Specifies that the dimension text is placed next to and centered about the elbow of the center leader.
wfcDIM_CLEADER_ABOVE_ELBOW—Specifies that the dimension text is placed next to and above the elbow of the center leader.
wfcDIM_CLEADER_ABOVE_EXT_ELBOW—Specifies that the dimension text is placed above the extended elbow of the center leader.
wfcDIM_PARALLEL_ABOVE—Specifies that the dimension text is placed parallel to and above the center leader.
wfcDIM_PARALLEL_BELOW—Specifies that the dimension text is placed parallel to and below the center leader.
The method wfcCenterLeaderInformation::GetElbowLength and wfcCenterLeaderInformation::GetElbowDirection returns the length and direction of the elbow used by the center leader and the leader end symbol.
The method wfcCenterLeaderInformation::GetLeaderArrowType returns the type of arrow for the leader.
* 
A center leader type is available only for linear and diameter dimensions.
The methods wfcDimLocation::GetFirstZExtensionLineLocation and wfcDimLocation::GetSecondZExtensionLineLocation obtains the endpoints of the first and second Z-extension lines created for a specified dimension. Z-extension lines are automatically created whenever the dimension’s attachment does not intersect its reference in the Z-Direction. The Z-extension line is attached at the edge of the surface at the closest distance from the dimension witness line.
The methods wfcDimLocation::GetFirstArrowheadLocation and wfcDimLocation::GetSecondArrowheadLocation returns the location of the first and second arrow heads for a dimension.
The method wfcDimLocation::GetElbowLength returns the length of the elbow for a dimension.
The methods wfcDimLocation::GetFirstWitnessLineLocation and wfcDimLocation::GetSecondWitnessLineLocation gets the location of the first and second witness line end points for a dimension.
The method wfcDimLocation::GetLocation returns the location of the elements that make up a solid dimension or reference dimension.
The method wfcDimLocation::HasElbow specifies if a dimension has an elbow. The method returns the following values:
True—If the dimension has an elbow.
False—If the dimension does not have an elbow.
Was this helpful?