Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Conversion toolbox > To Shapefile toolset > Tools

Feature Class To Shapefile (multiple) (Conversion)

Release 9.2
Last modified April 2, 2008
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Copies the features from one or more feature classes or layers to a shapefile.


Usage tips

Command line syntax
An overview of the Command Line window
FeatureclassToShapefile_conversion <Input_Feature_class; Input_Feature_class...> <Output_Folder>

Parameter Explanation Data Type
<Input_Feature_class; Input_Feature_class...>

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
Data types for geoprocessing tool parameters


Command line example

FeatureClassToShapefile c:\gdb.mdb\Valinor;c:\gdb.mdb\Numenor.shp c:\myShapefiles

Scripting syntax
About getting started with writing geoprocessing scripts
FeatureclassToShapefile_conversion (Input_Features, Output_Folder)

Parameter Explanation Data Type
Input_Features (Required)

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

Feature Layer
Output_Folder (Required)

The output or destination folder.

Folder

Data types for geoprocessing tool parameters


Script example

# ConvertToSHPExample.py
# Description: Simple example showing a use of the FeatureClassToShapefile tool
# Requirements: Python and the Python win32all extension
# Author: ESRI
# Data 1/1/2004

# Create the Geoprocessor
import arcgisscripting
gp = arcgisscripting.create()

# Put in error trapping in case an error occurs when running tool
try:
    # Set the workspace, then export list of SDE feature classes
    gp.Workspace = "Database Connections/Connection to Doosie.sde/ED.Europe"
    gp.FeatureClassToShapefile("ED.roads;ED.cities;ED.countries","c:/geodata/Europe/shapefiles")

except:
    # If an error occurred print the message to the screen
    print gp.GetMessages()

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.