Share

GeometricConstraints.AddVertical Method

Parent Object: GeometricConstraints

Description

Method that creates a new vertical constraint on the input sketch entity. Valid input objects are lines and ellipses. Either the major or minor axis of an ellipse is used depending on the value of the UseEllipseMajorAxis input argument. When an ellipse is used, the specified axis of the ellipse will become vertical. This method will fail if the constraint overconstrains the sketch.

Syntax

GeometricConstraints.AddVertical( Entity As SketchEntity, [UseEllipseMajorAxis] As Boolean ) As VerticalConstraint

Parameters

Name Type Description
Entity SketchEntity Input sketch entity. Must be a line, ellipse, or elliptical arc.
UseEllipseMajorAxis Boolean Optional Boolean that specifies whether to use the major or minor axis for the ellipse. This argument only applies when the input entity is an ellipse or elliptical arc. Inputting True results in the constraint being applied to the major axis. This value is ignored when a line is supplied for the entity.

This is an optional argument whose default value is True.

Version

Introduced in version 5

Was this information helpful?