GeometricConstraints.addTangent Method

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

Description

Creates a new tangent constraint between two curves.

Syntax

"geometricConstraints_var" is a variable referencing a GeometricConstraints object.
returnValue = geometricConstraints_var.addTangent(curveOne, curveTwo)
"geometricConstraints_var" is a variable referencing a GeometricConstraints object.

#include <Fusion/Sketch/GeometricConstraints.h>

returnValue = geometricConstraints_var->addTangent(curveOne, curveTwo);

Return Value

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

Parameters

Name Type Description
curveOne SketchCurve The first curve to be tangent.
curveTwo SketchCurve The second curve to be tangent.

Samples

Name Description
Create Circle By 3 Tangents API Sample Creates three lines and then draws a circle that is tangent to the lines. It then creates tangent constraints to maintain that relationship.
GeometricConstraints.addTangent Demonstrates the GeometricConstraints.addTangent method.
SketchCircles.addByTwoTangents Demonstrates the SketchCircles.addByTwoTangets method.

Version

Introduced in version August 2014