GeometricConstraints.addVertical Method

Parent Object: GeometricConstraints
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/GeometricConstraints.h>

Description

Creates a new vertical constraint on a line.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addVertical(line)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addVertical(line);

Return Value

Type Description
VerticalConstraint Returns the newly created VerticalConstraint object or null if the creation failed.

Parameters

Name Type Description
line SketchLine The line to constrain vertically.

Samples

Name Description
API Sample that demonstrates creating sketch lines in various ways. Demonstrates several ways to create sketch lines, including as the result of creating a rectangle.
GeometricConstraints.addVertical Demonstrates the GeometricConstraints.addVertical method.

Version

Introduced in version August 2014