Open Table of Contents

ET GeoWizards Scripting

Vector Grid Extents
(Go to the main page of the function)

Creates a grid of points using grid extents and sell size in X and Y direction.

Syntax    

Dim ET As  New ETGW_Core
Set variable =  ET.VectorGridExtents (sOutFname, pEnvelope, pOutSref, sOption,  _
                                              dCellSizeX, dCellSizeY, sMessage)

The VectorGridExtents 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)
pEnvelope Required. An Envelope object - defines the extent of the vector grid to be created. 
pOutSref Required. A Spatial reference object  - the spatial reference for the output feature class.
sOption Required. A String that indicates the geometry type of the vector grid to be created. Valid values - "Polyline", "Polygon".
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. 

Example