GeometricConstraints.addCollinear Method

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

Description

Creates a new collinear constraint between two lines.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addCollinear(lineOne, lineTwo)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addCollinear(lineOne, lineTwo);

Return Value

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

Parameters

Name Type Description
lineOne SketchLine The first line to create the constraint on.
lineTwo SketchLine The second line to create the constraint on.

Samples

Name Description
GeometricConstraints.addCollinear Demonstrates the GeometricConstraints.addCollinear method.

Version

Introduced in version August 2014