Share

GeometricConstraints.AddHorizontal Method

Parent Object: GeometricConstraints

Description

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

Syntax

GeometricConstraints.AddHorizontal( Entity As SketchEntity, [UseEllipseMajorAxis] As Boolean ) As HorizontalConstraint

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?