Query regarding dimension location for circle in sketch

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to apply dimension constraint for circle to add the radius dimension.
I have given the dimension location text point as input, but it doesn't take input location point to place the dimension and places the dimension at the center of circle. Please see the attached snap "CircleWithRadius.png".
Here is the sample code:
//===============================
CComPtr<Point2d> point2D;
TransientGeometry::CreatePoint2d(5, 5, &point2D);
CComPtr<SketchPoint> sketchPoint = SketchPoints::MethodAdd(point2D, FALSE);
CComPtr<SketchCircle> sketchCircle = SketchCircles::MethodAddByCenterRadius(sketchPoint, 3);
CComPtr<Point2d> textPt;
TransientGeometry::CreatePoint2d(8, 5, &textPt);
CComQIPtr<SketchEntity> sketchEntity(sketchCircle);
CComPtr<RadiusDimConstraint>radiusDimConstraint;
DimensionConstraints::AddRadius(sketchEntity, textPt, FALSE, &radiusDimConstraint);
//===============================
Please let me know, what is the conflict? Why the circle entity always place the radius at the center of circle?
Thanks in advance!!!