GeometricConstraints.addLineParallelToPlanarSurface Method

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

Description

Creates a new parallel constraint between a sketch line and a planar surface that will constrain the line to lie on a plane parallel to the specified surface.

Syntax

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

#include <Fusion/Sketch/GeometricConstraints.h>

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

Return Value

Type Description
LineParallelToPlanarSurfaceConstraint Returns the newly created LineParallelToPlanarSurfaceConstraint 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 be parallel to.

Version

Introduced in version September 2023