Open Table of Contents

ET GeoWizards Scripting

Split Polyline Basic
(Go to the main page of the function)

Splits the features of a polyline layer using several methods

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.SplitPolylineBasic(pInFeatureClass, sOutFileName, sOption, dTol,sMessage)

The SplitPolylineBasic 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)
sOption Required. A String -  the split option to be used. The available options are (Case sensitive): 
  • "Vertex" -  Splits the polylines in all vertices
  • "NumberIntervals" - Splits the polylines in equal segments
  • "SegmentLength" - Splits the polylines in segments with specified length. The last segment will have the specified length or smaller.
  • "EqualLength" - The user specified length is adjusted in order all resulting segments to have equal length.
  • "NumverVertices"- Splits the polylines in segments. Each segment will have the number of vertices specified. The last segment will have the number of vertices specified or less
dTol Required. A Double representing depending on the option selected: 
  • "Vertex" - not used. Specify 0
  • "NumberIntervals" - the number of segments
  • "SegmentLength" - the length of the segments
  • "EqualLength" - the length of the segments
  • "NumverVertices"- the number of vertices per segment

 

sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example