Share

DimensionConstraints3D.AddLineLength Method

Parent Object: DimensionConstraints3D

Description

Method that creates a new linear dimension constraint that defines the length of a 3D sketch line. This method will fail in the case where a driving dimension is specified and it will overconstrain the sketch.

Syntax

DimensionConstraints3D.AddLineLength( Line As SketchLine3D, [TextPoint] As Variant, [Driven] As Boolean ) As LineLengthDimConstraint3D

Parameters

Name Type Description
Line SketchLine3D Object that defines the 3D sketch line being constrained.
TextPoint Variant Object that defines the position of the dimension text. The dimension text will always be placed on a particular dimension plane the orientation of which will be automatically determined using the input line that is being dimensioned. The dimension plane is a transient geometric plane which is only used to define the placement plane for the dimension text and does not have a graphical representation. If no input is specified for the position of the dimension text, a default position on the dimension plane will be calculated and used to place the dimension text. If a valid point for the dimension text is specified, then either of the following conditions will apply: * If the specified point already lies on the dimension plane, then this point will be directly used to place the dimension text. * If the specified point does not lie on the dimension plane, it will be projected onto the dimension plane. Therefore, the resultant placement position for the dimension text will be different from the specified one. The GetDimensionPlane method of the DimensionConstraints3D object can be used to get the dimension plane object which provides access to the dimension plane geometry.

This is an optional argument whose default value is null.
Driven Boolean 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 11

Was this information helpful?