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.

Samples

Name Description
Creates an I-Bream on a User Coordinate System

Demonstrates the use of an existing user coordinate system to create geometry dependent on it.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground.

Version

Introduced in version September 2026