GeometricConstraints.addPerpendicular2 Method

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

Description

Creates a new perpendicular constraint between a line and another curve.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

returnValue = geometricConstraints_var.addPerpendicular2(line, curve)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addPerpendicular2(line, curve);
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

returnValue = geometricConstraints_var.addPerpendicular2(line, curve);

Return Value

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

Parameters

Name Type Description
line SketchLine The line to create the constraint on.
curve SketchCurve The other curve to create the constraint on. This can be a line, circle, or arc.

Version

Introduced in version September 2026