Open Table of Contents

ET GeoWizards Scripting

Station Lines
(Go to the main page of the function)

Creates equally spaced lines along the polylines from the input dataset. The station lines are single segmented polylines perpendicular to the input polylines (at the location of the station).

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.StationLines(pInFeatureClass, sOutFName, dStep, sSide,sLengthFrom,dLength,sMessage)

The StationLines 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)
sOutFName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
dStep Required. A Double representing the distance (in the units of the spatial refere4nce of the input feature class) between the station lines along the input polylines
sSide Required. A String -  Side of the station lines in relation to the original polylines - three options are available
  • "Both" - the middle of the station lines will intersect the original polylines
  • "Left" - station lines will be located on the left side of the polylines
  • "Right" - station lines will be located on the right side of the polylines
sLengthFrom Required. A String indicating where the length of the station lines will be taken from: 
  • "Constant" or "C"  - a constant length specified with the dLength parameter
  • "Z" - the Z value of the input polylines (at the location of the station) will be used for length of the station lines. The input polylines must have Z values.
  • "M" - the M value of the input polylines (at the location of the station) will be used for length of the station lines. The input polylines must have M values.
dLength Required. A Double representing the length (in the units of the spatial refere4nce of the input feature class) of the station lines. Used only with "Constant" option. If "Z" or "M" options are used, specify 0
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example