Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Michael.Navara
in reply to: Anonymous

This is possible, but you need to find a drawing geometry which belongs to face or edge.

Main steps for this goal is

  • Get FaceProxy from Mate (MateConstraint.EntityOneMateConstraint.EntityTwo)
  • Get DrawingCurves which belongs to face in appropriate DrawingView (DrawingView.DrawingCurves(faceProxy))
  • Select the right DrawingCurve
  • Create GeometryIntent for this curve (Sheet.CreateGeometryIntent(geometry, intent))
  • Select dimension text position (Point2D)
  • Create DrawingDimension (Sheet.DrawingDimensions.GeneralDimensions.AddLinear(...))

Notes:

Generally it does not have to be parallel lines.

For one face you can find more then one curve in drawing view