AddPolyline Method |
Creates a polyline from a list of vertices.
Signature
RetVal = object.AddPolyline(VerticesList)
Object
ModelSpace Collection,
PaperSpace
Collection, Block
The object or objects this method applies to.
VerticesList
Variant (array of doubles); input-only
An array of OCS coordinates used to create the polyline vertices.
Each vertex is represented with three elements, with the first two
being the X and Y coodinates in OCS; the third element is
ignored. At least two points (six elements) are required for
constructing a polyline object. The array size must be a multiple
of three.
RetVal
Polyline object
The newly created Polyline object.
Remarks
To create a polyline containing arcs, first create the straight polyline, and then set the bulge at specific vertices using the SetBulge method.
This method exists for backward compatibility only. Use the AddLightweightPolyline method to create polylines with an optimized format that saves memory and disk space.
Coordinates can be converted to and from the OCS using the TranslateCoordinates method.
Comments? |