Share

DimensionConstraints.AddTwoPointDistance Method

Parent Object: DimensionConstraints

Description

Method that creates a new linear dimension constraint between two points.

Remarks

The result can be either a vertical, horizontal, or aligned dimension depending on the orientation specified. The picture below illustrates the three possible cases when placing this constraint between two points.

Syntax

DimensionConstraints.AddTwoPointDistance( PointOne As SketchPoint, PointTwo As SketchPoint, Orientation As DimensionOrientationEnum, TextPoint As Point2d, [Driven] As Boolean ) As TwoPointDistanceDimConstraint

Parameters

Name Type Description
PointOne SketchPoint Input sketch point.
PointTwo SketchPoint Input sketch point.
Orientation DimensionOrientationEnum Input constant that specifies if the dimension is horizontal, vertical, or aligned.
TextPoint Point2d Input object that defines the position of the dimension text.
Driven Boolean Optional input Boolean that specifies whether the dimension should be a driven or driving dimension. The default value is False, which causes a driving dimension constraint to be created.

This is an optional argument whose default value is False.

Version

Introduced in version 5

Was this information helpful?