ET GeoWizards Scripting
Cogo Inverse
(Go to the main page of the
function)
Converts a polyline or a polygon data set to a feature class containing only single segmented polylines. For each segment the COGO attributes are calculated and added to the resulting attribute table. The attributes of the original features are copied to the output features.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.CogoInverse(pInFeatureClass, sOutFileName, _
bCoords, bZattrib, sDirType, sDirUnits, lLinPrec, lAngPrec,sMessage)
The CogoInverse 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) |
| bCoords | Required. A Boolean indicating whether the Start & End point coordinates will be recorded for the segments |
| bZattrib | Required. A Boolean indicating whether the Z/M values of the segments will be recorded in the output attribute table. If the input features do not have Z/M values bZattrib is set to False automatically |
| sDirType | Required. A String - the type of the output angle for the direction of
the segments. The available options are (Case
sensitive):
|
| sDirUnits | Required. A String - the units of the output angle for the direction of
the segments. The available options are (Case
sensitive):
|
| lLinPrec | Required. A Long representing the number of places after the decimal point for the output linear measurements |
| lAngPrec | Required. A Long representing the number of places after the decimal point for the output angular measurements |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |