DimensionConstraints.AddOffset Method
Parent Object: DimensionConstraintsDescription
Method that creates a new offset dimension constraint between two entities.
Remarks
One of the input entities must be a sketch line. The other entity can be either a line or a point. When two lines are input this constraint has the effect of forcing parallelism between the lines. The dimension axis is perpendicular to the sketch line input for the Line argument. The picture below illustrates two cases of the offset dimension constraint. In the dimension with the 0.614 value, the two red vertical lines are constrained. In the second case the line representing the center line and the horizontal red line are constrained. In the second case the LinearDiameter flag was set to True to result in the linear diameter type of dimension.

Syntax
DimensionConstraints.AddOffset( Line As SketchLine, Entity As SketchEntity, TextPoint As Point2d, LinearDiameter As Boolean, [Driven] As Boolean ) As OffsetDimConstraintParameters
Name | Type | Description |
Line | SketchLine | Input SketchLine object. |
Entity | SketchEntity | 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. |
TextPoint | Point2d | Input object that defines the position of the dimension text. |
LinearDiameter | Boolean | Input Boolean that specifies whether the dimension should be a standard distance dimension or be displayed as a linear diameter dimension. |
Driven | Boolean | Optional input Boolean that specifies whether the dimension should be a driven or driving dimension. The default is False, which will create a driving dimension. This is an optional argument whose default value is False. |