Feature Class To Shapefile (Conversion)

Summary

Copies the features from one or more feature classes or layers to a folder of shapefiles.

Usage

Syntax

FeatureclassToShapefile_conversion (Input_Features, Output_Folder)
ParameterExplanationData Type
Input_Features
[Input_Features,...]

The list of input feature classes or feature layers that will be converted and added to the output folder.

Feature Layer
Output_Folder

The output or destination folder.

Folder

Code Sample

FeatureClassToShapefile example (Python window)

The following Python window script demonstrates how to use the FeatureClassToShapefile function in immediate mode.

import arcpy
from arcpy import env
env.workspace = "C:/data/airport.gdb"
arcpy.FeatureClassToShapefile_conversion(["county", "parcels", "schools"],
                                         "C:/output")
FeatureClassToShapefile example 2 (stand-alone script)

The following Stand-alone script demonstrates how to use the FeatureClassToShapefile function.

# Name: FeatureClassToShapefile_Example2.py
# Description: Use FeatureClassToGeodatabase to copy feature classes
#  to shapefiles
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "C:/data"
 
# Set local variables
inFeatures = ["climate.shp", "majorrds.shp"]
outLocation = "C:/output"
 
# Execute FeatureClassToGeodatabase
arcpy.FeatureClassToShapefile_conversion(inFeatures, outLocation)

Environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

11/14/2011