SketchLines.addByTwoPoints Method

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

Description

Creates a sketch line between the two input points. The input points can be either existing SketchPoints or Point3D objects. If a SketchPoint is used the new line will be based on that sketch point and update if the sketch point is modified.

Syntax

"sketchLines_var" is a variable referencing a SketchLines object.
returnValue = sketchLines_var.addByTwoPoints(startPoint, endPoint)
"sketchLines_var" is a variable referencing a SketchLines object.

#include <Fusion/Sketch/SketchLines.h>

returnValue = sketchLines_var->addByTwoPoints(startPoint, endPoint);

Return Value

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

Parameters

Name Type Description
startPoint Base The start point of the line. It can be a SketchPoint or Point3D object.
endPoint Base The end point of the line. It can be a SketchPoint or Point3D object.

Samples

Name Description
API Sample that demonstrates creating sketch lines in various ways. Demonstrates several ways to create sketch lines, including as the result of creating a rectangle.
Simple Revolve Feature Sample Creates a new revolve feature, resulting in a new component.
SketchArcs.addFillet Demonstrates the SketchArcs.addFillet method.
SketchCircles.addByThreeTangents Demonstrates the SketchCircles.addByThreeTangets method.
SketchCircles.addByTwoTangents Demonstrates the SketchCircles.addByTwoTangets method.
SketchLines.addAngleChamfer Demonstrates the SketchLines.addAngleChamfer method.
SketchLines.addByTwoPoints Demonstrates the SketchLines.addByTwoPoints method.
SketchLines.addDistanceChamfer Demonstrates the SketchLines.addDistanceChamfer method.

Version

Introduced in version August 2014