Open Table of Contents

ET GeoWizards Scripting

Point To Polyline
(Go to the main page of the function)

Converts a point data set to a polyline feature class. 

Note: PointToPolyline method is obsolete. Use PointToPolyline2 method instead.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.PointToPolyline2(pInFeatureClass, sOutFileName, sIdFieldName, bUseOrder, sOrderFieldName, sLinkField, sMessage)

The PointToPolyline2 method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Point feature class)
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
sIdFieldName Required. A String -  the name (Case sensitive) of the field which values will indicate the points used to form a single polyline. 
bUseOrder Required. A Boolean  indicating whether the order in which the points describe the polyline will be taken from a field in the attribute table
sOrderFieldName Required. A String  - the name (Case sensitive) of a Numeric (integer or double) field which values will indicate the order in which the points describe the polylines. This is ignored (can be set to any string) if bUseOrder = False
 sLinkField Optional. A String - the name of the field of the point attribute table to be used as a link. The values for the first and last point that will form a single polyline will be added to the polyline attribute table.
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example