Representation Class properties
Resumen
The Describe function returns the following properties for representation classes. The Dataset property group is also supported.
Describe properties for representation classes can be obtained from either the representations property or the children property of a geodatabase feature class.
For a representation class, the Describe dataType property returns a value of "RepresentationClass".
Propiedades
| Propiedad | Explicación | Tipo de datos |
|---|---|---|
|
overrideFieldName (Solo lectura) |
The name of the |
String |
|
requireShapeOverride (Solo lectura) |
Indicates whether a shape override is required for feature representations. |
Boolean |
|
ruleIDFieldName (Solo lectura) |
The name of the |
String |
Muestra de código
Representation class properties example
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))