Polyline2D.createByArray Method

Parent Object: Polyline2D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Polyline2D.h>

Description

Creates a transient 2D polyline using an array of floating point values that specify the X, Y coordinates for each point.

Syntax

This is a static method.

returnValue = adsk.core.Polyline2D.createByArray(pointCoordinates)
This is a static method.

#include <Core/Geometry/Polyline2D.h>

returnValue = adsk::core::Polyline2D::createByArray(pointCoordinates);

Return Value

Type Description
Polyline2D Returns the created Polyline2D object.

Parameters

Name Type Description
pointCoordinates double[] An array of floating point values that define the X, Y coordinates of each point in the polyline.

Version

Introduced in version September 2024