ET GeoWizards Scripting
Snap Polylines
(Go to the main page of the function)
Snaps the features of a polyline feature class to the features of another dataset (Point, Polyline or Polygon)
Syntax
Dim ET As New ETGW_Core
Set variable = ET.SnapPolylines(pInFeatureClass , pReferenceFeatureClass, _
sOutFileName, dSnapTol, bVertex, bNearest, sSnapWhat, sMessage)
The SnapPolylines 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) |
| pReferenceFeatureClass | Required. An IFeatureClass object (a Point, Polyline or Polygon 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) |
| dSnapTol | Required. A Double representing the snap tolerance |
| bVertex | Required. A Boolean indicating whether snapping to the closest vertex of the nearest feature from the pReferenceFeatureClass to be used |
| bNearest | Required. A Boolean indicating whether snapping to the nearest point of the nearest feature from the pReferenceFeatureClass to be used |
| sSnapWhat | Required.
A String indicating what parts of the input polylines will be snapped.
Possible values:
|
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |