Calculate Representation Rule (Cartography)

License Level:BasicStandardAdvanced

Summary

Applies existing representation rules to features in a feature class representation by calculating the RuleID field.

Usage

Syntax

CalculateRepresentationRule_cartography (in_features, representation, representation_rule)
ParameterExplanationData Type
in_features

The feature class that contains the features for which representation rules will be calculated.

Feature Layer
representation

The feature class representation that contains the representation rules that will be applied to features. This feature class representation must belong to the input feature class.

String
representation_rule

The representation rule to be applied to the input features by calculating the RuleID field.

String

Code Sample

CalculateRepresentationRule tool Example (Python Window)

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

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.CalculateRepresentationRule_cartography("footprints.lyr", "footprints_Rep", "Rule_3")
CalculateRepresentationRule tool Example (stand-alone Python script)

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

# Name: CalculateRepresentationRule_standalone_script.py
# Description: Applies existing representation rules to features in a feature class representation by calculating the RuleID field.
# 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 = "footprints_Rep"
representation_rule = "Rule_3"

# Execute Calculate Representation Rule
arcpy.CalculateRepresentationRule_cartography(in_features, representation, representation_rule)

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
10/25/2012