GeometricConstraints.addLineOnPlanarSurface Method

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

Description

Creates a new constraint that forces the sketch line to lie on a planar surface.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addLineOnPlanarSurface(line, planarSurface)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addLineOnPlanarSurface(line, planarSurface);

Return Value

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

Parameters

Name Type Description
line SketchLine The SketchLine to constrain to the surface.
planarSurface Base The planar BRepFace or CosntructionPlane the sketch line will lie on.

Version

Introduced in version September 2023