I do not understand why this simple script won't work. I can get it to dissolve in model builder but not from a script that I run from inside the map document. My output results are 4 polygons, just like my input file. I only want one.
Any suggestions? Attached shapefile.
ArcGIS 10.1 Advanced
Any suggestions? Attached shapefile.
Code:
# Import arcpy module
import arcpy
from arcpy import env
# Local variables:
env.workspace="C:\\Test\\shapefiles"
infeatures = "Multipolys.shp"
outfeatures = "C:\\Test\\shapefiles\\Dissolve.shp"
# Process: Dissolve
arcpy.Dissolve_management(infeatures, outfeatures, "", "", "SINGLE_PART", "DISSOLVE_LINES")