ET GeoWizards Scripting
Point Grid
(Go to the main page of the function)
Creates a grid of points using user defined grid type and distance between the points.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.PointGrid (sOutFname, pOutSref, sOption, dLowerLeftX,
dLowerLeftY, _
lNumColumns, lNumRows, dCellSizeX, dCellSizeY, sMessage)
The PointGrid method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | An IFeatureClass object |
| sOutFileName | Required. A String - the full name of the output feature class (A feature class with the same full name should not exist) |
| pOutSref | Required. A Spatial reference object - the spatial reference for the output feature class. |
| sOption | Required. A String that indicates the type of the point grid to be created. Valid values - "Triangle", "Rectangle", "Square". Any other value will be treated as "Square" |
| dLowerLeftX | Required. A Double representing the X coordinate of the lower left corner of the point grid to be created |
| dLowerLeftY | Required. A Double representing the Y coordinate of the lower left corner of the point grid to be created |
| lNumColumns | Required. A Long representing the number of columns of the output grid |
| lNumRows | Required. A Long representing the number of rows of the output grid |
| dCellSizeX | Required. A Double representing the distance between the points in the output grid in X direction |
| dCellSizeY | Required. A Double representing the distance between the points in the output grid in Y direction |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |