Set Layer Representation (Cartography)

License Level:BasicStandardAdvanced

Summary

Sets a representation for a feature layer. The layer is temporary and stored in memory during the ArcGIS session, available for use in models and scripts.

Usage

Syntax

SetLayerRepresentation_cartography (in_layer, representation)
ParameterExplanationData Type
in_layer

The input feature layer containing at least one representation.

Layer
representation

The representation to be set for the input feature layer.

String

Code Sample

SetLayerRepresentation tool Example (Python Window)

The following Python window script demonstrates how to use the SetLayerRepresentation tool in immediate mode.

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.SetLayerRepresentation_cartography("footprints.lyr", "buildings_Rep")
SetLayerRepresentation tool Example (stand-alone Python script)

This stand-alone script shows an example of using the SetLayerRepresentation tool.

# Name: SetLayerRepresentation_standalone_script.py
# Description: Sets a representation for a feature layer. The layer is temporary and stored in memory for use in models and scripts.
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
in_features = "footprints.lyr"
representation = "buildings_Rep"

# Execute Set Layer Representation
arcpy.SetLayerRepresentation_cartography(in_features, representation)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014