SketchLines.addThreePointRectangle Method

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

Description

Creates four sketch lines representing a rectangle where the first two points are the base corners of the rectangle and the third point defines the height.

Syntax

"sketchLines_var" is a variable referencing a SketchLines object.
returnValue = sketchLines_var.addThreePointRectangle(pointOne, pointTwo, pointThree)
"sketchLines_var" is a variable referencing a SketchLines object.

#include <Fusion/Sketch/SketchLines.h>

returnValue = sketchLines_var->addThreePointRectangle(pointOne, pointTwo, pointThree);

Return Value

Type Description
SketchLineList Returns the four new sketch lines or null if the creation failed.

Parameters

Name Type Description
pointOne Base The first corner of the rectangle. It can be a SketchPoint or Point3D object.
pointTwo Base The first corner of the rectangle. It can be a SketchPoint or Point3D object.
pointThree Point3D The first corner of the rectangle. a Point3D object defining the height of the rectangle.

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.
SketchLines.addThreePointRectangle Demonstrates the SketchLines.addThreePointRectangle method.

Version

Introduced in version August 2014