Save To Layer File (Data Management)

This ArcGIS 2.8 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Summary

Creates an output layer file (.lyrx) from a map layer. The layer file stores many properties of the input layer such as symbology, labeling, and custom pop-ups. Layer files saved from ArcGIS Pro cannot be used in ArcMap.

Usage

  • In addition to map layers, this tool also accepts layers created by tools such as Make Feature Layer or Make XY Event Layer.

  • If the input layer has a selection applied to it, the output layer file will maintain this selection.

Parameters

LabelExplanationData Type
Input Layer

The map layer to be saved to disk as a layer file.

Layer
Output Layer

The output layer file (.lyrx) to be created.

Layer File
Store Relative Path
(Optional)

Determines if the output layer file will store a relative path to the source data stored on disk, or an absolute path.

  • Unchecked—The output layer file will store an absolute path to the source data stored on disk. This is the default.
  • Checked—The output layer file will store a relative path to the source data stored on disk. If the output layer file is moved, its source path will update to where the source data should be in relation to the new path.
Boolean
Layer Version
(Optional)

The version of the output layer file.

  • CurrentThe current version. This is the default.
String

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics