Hello,
There is an API AddTwoPointDistance() to add the distane(horizontal, vertical or aligned) between two sketch points.
But I want to add perpendicular distance constraint between a sketch point and a sketch line, please tell me what should I do to solve this problem.
Thanks in advance.
Solved! Go to Solution.
Solved by saseendrankombath. Go to Solution.
You can use Addoffset method for this.
DimensionConstraints.AddOffset( Line As SketchLine, Entity As SketchEntity, TextPoint As Point2d, LinearDiameter As Boolean, [Driven] As Boolean ) As OffsetDimConstraint
Entity | Input sketch entity. This must be either a or SketchPoint object. If creating a linear diameter dimension and Entity is a SketchLine, then Entity is used as the centerline. If Entity is a SketchPoint, then Line is used as the centerline.
|
this is from the API Help