GeometricConstraints.addPerpendicularToSurface Method

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

Description

Creates a new perpendicular constraint that forces the sketch curve to be perpendicular to the specified surface. Line and spline curves are supported.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addPerpendicularToSurface(curve, surface)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addPerpendicularToSurface(curve, surface);

Return Value

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

Parameters

Name Type Description
curve SketchCurve The SketchCurve to constrain to the surface.
surface Base The BRepFace or ConstructionPlane the line will be perpendicular to.

Version

Introduced in version September 2023