ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

RepresentationClass properties

  • Summary
  • Properties
  • Code sample

Summary

The Describe function returns the following properties for Representation Classes. Dataset Properties are also supported.

Describe properties for Representation Classes can be obtained from either the GDBFeatureClass.representations property or the DescribeObject.children property of a GDB FeatureClass.

A Representation Class returns a dataType of "RepresentationClass".

Properties

PropertyExplanationData Type
overrideFieldName
(Read Only)

The name of the Override field.

String
requireShapeOverride
(Read Only)

Indicates if a shape override is required for feature representations.

Boolean
ruleIDFieldName
(Read Only)

The name of the RuleID field.

String

Code sample

RepresentationClass properties example (stand-alone script)

The following stand-alone script displays properties for all the representation classes in a feature class.

import arcpy

# Create a Describe object
#
desc = arcpy.Describe("C:/data/moad.gdb/Water_Bodies")

# Print RepresentationClass properties for each representation 
#   in the feature class.
#
for child in desc.representations:
    if child.datasetType == "RepresentationClass":
        print child.name
        print "\t%-25s %s" % ("Override field name:", child.overrideFieldName)
        print "\t%-25s %s" % ("Shape override required:", child.requireShapeOverride)
        print "\t%-25s %s" % ("RuleID field name:", child.ruleIDFieldName)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal