AutoCAD.Polyline

Inherits from AutoCAD.Entity

Description

A class that encapsulates a polyline in a DWG file.

This class is a FlexScript wrapper for the AcDbPolyline class.

Properties

numVerts Gets the polyline's number of vertices.

Methods

addVertexAt Adds a vertex at the defined index.
create Creates a new AutoCAD.Polyline object.
getPointAt Gets the line's vertex at the defined index.
removeVertexAt Removes the vertex at the defined index.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

AutoCAD.Polyline.numVerts

int numVerts

Description

Gets the polyline's number of vertices.

Do no remove, this fixes the anchor on doc.flexsim.com

AutoCAD.Polyline.addVertexAt()

void addVertexAt( int index , Vec3 loc , double bulge = 0 , double startWidth = 0 , double endWidth = 0 )

Parameters

index The 0-based index of the vertex.
loc The location of the vertex.
bulge The bulge of the vertex.
startWidth The start width of the vertex.
endWidth The end width of the vertex.

Description

Adds a vertex at the defined index.

Do no remove, this fixes the anchor on doc.flexsim.com

AutoCAD.Polyline.create()

AutoCAD.Polyline create( )

Returns

AutoCAD.Polyline A new AutoCAD.Polyline object.

Description

Creates a new AutoCAD.Polyline object.


				var polyline = AutoCAD.Polyline.create();
			
Do no remove, this fixes the anchor on doc.flexsim.com

AutoCAD.Polyline.getPointAt()

Vec3 getPointAt( int index )

Parameters

index The 0-based index of the vertex.

Description

Gets the line's vertex at the defined index.

Do no remove, this fixes the anchor on doc.flexsim.com

AutoCAD.Polyline.removeVertexAt()

void removeVertexAt( int index )

Parameters

index The 0-based index of the vertex.

Description

Removes the vertex at the defined index.