Open Table of Contents

ET GeoWizards Scripting

Merge Layers
Merges two feature layers from the same type together. Preserves Z/M dimension 

Syntax    

Dim ET As  New ETGW_Core
Set variable =  ET.Merge(pInFeatureClass, pMergeFeatureClass, sOutFileName)

The Merge method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Point, PointZ, PointM, Polyline, PolylineZ, PolylineM, Polygon, PolygonZ, PolygonM  feature class)
pMergeFeatureClass Required. An IFeatureClass object (Must have the same geometry type as pInFeatureClass). The attributes will be retained if the field names are the same as the fields of  pInFeatureClass
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)

Example