Open Table of Contents

ET GeoWizards Scripting

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

Converts a polyline data set to a point feature class.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.PolylineToPoint(pInFeatureClass, sOutFileName, sExportOption, bRemoveDuplicates)

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

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Polyline 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)
sExportOption Required. A String -  the export option to be used. The available options are (Case sensitive): 
  • "Vertex" -  - the vertices of all polylines will be converted to points. If bRemoveDuplicates = True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
  • "Middle" - only the middle point of each polyline will be exported.
  • "Node" - only the nodes of each polyline will be exported. If bRemoveDuplicates = True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
bRemoveDuplicates Required. A Boolean  used only with sExportOption = "Vertex" and sExportOption = "Node" . If True the duplicate points representing coincident nodes will be removed.

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

Converts a polyline data set to a point feature class.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.PolylineToPoint2(pInFeatureClass, sOutFileName, sExportOption, bRemoveDuplicates, bAngle, bAngleAtFrom)

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

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Polyline 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)
sExportOption Required. A String -  the export option to be used. The available options are (Case sensitive): 
  • "Vertex" -  - the vertices of all polylines will be converted to points. If bRemoveDuplicates = True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
  • "Middle" - only the middle point of each polyline will be exported.
  • "Node" - only the nodes of each polyline will be exported. If bRemoveDuplicates = True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
bRemoveDuplicates Required. A Boolean  used only with sExportOption = "Vertex" and sExportOption = "Node" . If True the duplicate points representing coincident nodes will be removed.
bAngle Required. Indicates whether an angle attribute to be added to the point attribute table.
bAngleAtFrom Required. Indicates from which polyline segment to be calculated the angle. True - from the start segment, False3 from the segment end. See the main page of the function for an example.

 

Example