Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Layers and Table Views toolset > Tools

Save To Layer File (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

The Save To Layer File tool creates an output layer file that references geographic data stored on disk.


Usage tips

Command line syntax
An overview of the Command Line window
SaveToLayerFile_management <in_layer> <out_layer>

Parameter Explanation Data Type
<in_layer>

The in-memory layer created by the Make Feature Layer tool or a layer file stored on disk.

Layer
<out_layer>

The output layer file to be created.

Layer File
Data types for geoprocessing tool parameters


Command line example

SaveToLayerfile_management transport D:\Workspace\transport.lyr

Scripting syntax
About getting started with writing geoprocessing scripts
SaveToLayerFile_management (in_layer, out_layer)

Parameter Explanation Data Type
in_layer (Required)

The in-memory layer created by the Make Feature Layer tool or a layer file stored on disk.

Layer
out_layer (Required)

The output layer file to be created.

Layer File

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "D:/Workspace.mdb"
gp.savetolayerfile "transport", "transport.lyr"

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