SketchLines.addCenterPointRectangle 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 point represents the center of the rectangle. The second point is the corner of the rectangle and can be either an existing SketchPoint or Point3D object. The four sketch lines are returned.

Syntax

"sketchLines_var" is a variable referencing a SketchLines object.
returnValue = sketchLines_var.addCenterPointRectangle(centerPoint, cornerPoint)
"sketchLines_var" is a variable referencing a SketchLines object.

#include <Fusion/Sketch/SketchLines.h>

returnValue = sketchLines_var->addCenterPointRectangle(centerPoint, cornerPoint);

Return Value

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

Parameters

Name Type Description
centerPoint Point3D The center point of the rectangle
cornerPoint Base The corner of the rectangle. 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.
SketchLines.addCenterPointRectangle Demonstrates the SketchLines.addCenterPointRectangle method.

Version

Introduced in version August 2014