ET GeoWizards Scripting
Create Routes Two Fields
(Go to the main page of the function)
Creates routes by merging existing polylines that have the same common identifier using as measure the values of two numeric fields - FROM Measure and TO Measure.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.CreateRoutesTwoFields(pInFeatureClass, sOutFileName, _
sIdFieldName, sFromMField, sToMField, pOutSRef, sMessage)
The CreateRoutesTwoFields 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) - the polyline dataset that will be used for creating routes |
| 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 of the route Identifier field |
| sFromMField | Required. A String - the name of the numeric field which values will be used for FROM measures |
| sToMField | Required. A String - the name of the numeric field which values will be used for TO measures |
| pOutSRef | Required. An ISpatialReference object - the spatial reference of the output route feature class - must have the same geographic coordinate system as pInFeatureClass |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |