Skip to main content

Save To Layer File (Data Management Tools)

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.

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

Label Explanation Data type

Input Layer

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

Layer; Table View

Output Layer

The output layer file (.lyrx) that will be created.

Layer File

Store Relative Path

(Optional)

Specifies whether the output layer file will store a relative path to the source data stored on disk or an absolute path.

  • CheckedThe 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.

  • UncheckedThe output layer file will store an absolute path to the source data stored on disk. This is the default.

Boolean

Layer Version

(Optional)

Specifies the version of the output layer file.

Legacy:

This parameter is no longer supported. It remains only for the backward compatibility of scripts and models.

Layer files created in a particular release are supported in all minor releases of the same series. For example, a layer file saved in ArcGIS Pro 3.1 can be used in all ArcGIS Pro 3.x releases.

To save a layer and its properties to a different major release of ArcGIS Pro, use the Package Layer tool.

  • CurrentThe current version. This is the default.

String

Environments

Current Workspace, Scratch Workspace

Licensing information

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