ArcGIS Pro 2.9 API Reference Guide
CreatePolyline(IEnumerable<IEnumerable<Segment>>,AttributeFlags,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > PolylineBuilderEx Class > CreatePolyline Method : CreatePolyline(IEnumerable<IEnumerable<Segment>>,AttributeFlags,SpatialReference) Method
Parts to create the polyline.
AttributeFlags to set the HasZ, HasM and HasID attributes. If no attributes should be set, pass AttributeFlags.NoAttributes. If all attributes should be set, pass AttributeFlags.AllAttributes. Use the bitwise OR operator to set two attributes. For example, to set HasZ = true and HasM = true, pass AttributeFlags.HasZ | AttributeFlags.HasM.
(Optional) The SpatialReference. The default value is null. The spatial reference of each segment is ignored.
Convenience method to create a new instance of the Polyline class.
Syntax

Parameters

parts
Parts to create the polyline.
attributes
AttributeFlags to set the HasZ, HasM and HasID attributes. If no attributes should be set, pass AttributeFlags.NoAttributes. If all attributes should be set, pass AttributeFlags.AllAttributes. Use the bitwise OR operator to set two attributes. For example, to set HasZ = true and HasM = true, pass AttributeFlags.HasZ | AttributeFlags.HasM.
spatialReference
(Optional) The SpatialReference. The default value is null. The spatial reference of each segment is ignored.

Return Value

Exceptions
ExceptionDescription
parts is null.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

PolylineBuilderEx Class
PolylineBuilderEx Members
Overload List