ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

RelationshipClass properties

  • Resumen
  • Propiedades
  • Muestra de código

Resumen

The Describe function returns the following properties for Relationship Classes. GDB Table Properties, Table Properties, and Dataset Properties are also supported.

Learn more about Relationship class properties

A Relationship Class returns a dataType of "RelationshipClass".

Propiedades

PropiedadExplicaciónTipo de datos
backwardPathLabel
(Sólo lectura)

The backward path label for the relationship class.

String
cardinality
(Sólo lectura)

The cardinality for the relationship class.

  • OneToOne
  • OneToMany
  • ManyToMany
String
classKey
(Sólo lectura)

Class key used for the relationship class.

  • Undefined
  • ClassID
  • ClassCode
String
destinationClassKeys
(Sólo lectura)

A list of tuples, with the object key name, and key role (DestinationPrimary, DestinationForeign).

tuple
destinationClassNames
(Sólo lectura)

A list containing the names of the destination classes.

String
forwardPathLabel
(Sólo lectura)

The forward path label for the relationship class.

String
isAttachmentRelationship
(Sólo lectura)

Indicates if the relationship class represents a table attachment.

Boolean
isAttributed
(Sólo lectura)

Indicates if the relationships in this relationship class have attributes.

Boolean
isComposite
(Sólo lectura)

Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.

Boolean
isReflexive
(Sólo lectura)

Indicates if the origin and destination sets intersect.

Boolean
keyType
(Sólo lectura)

Key type for the relationship class.

  • Single
  • Dual
String
notification
(Sólo lectura)

The notification direction for the relationship class.

  • None
  • Forward
  • Backward
  • Both
String
originClassNames
(Sólo lectura)

A list containing the names of the origin classes.

String
originClassKeys
(Sólo lectura)

A list of tuples, with the object key name, and key role (OriginPrimary, OriginForeign).

tuple
relationshipRules
(Sólo lectura)

The relationship rules that apply to this relationship class.

Object

Muestra de código

RelationshipClass properties example (stand-alone script)

The following stand-alone script displays properties for a relationship class.

import arcpy

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

# Print relationship class properties
#
print "%-25s %s" % ("Backward Path Label:", desc.backwardPathLabel)
print "%-25s %s" % ("Cardinality:", desc.cardinality)
print "%-25s %s" % ("Class key:", desc.classKey)
print "%-25s %s" % ("Destination Class Names:", desc.destinationClassNames)
print "%-25s %s" % ("Forward Path Label:", desc.forwardPathLabel) 
print "%-25s %s" % ("Is Attributed:", desc.isAttributed)
print "%-25s %s" % ("Is Composite:", desc.isComposite) 
print "%-25s %s" % ("Is Reflexive:", desc.isReflexive)
print "%-25s %s" % ("Key Type:", desc.keyType)
print "%-25s %s" % ("Notification Direction:", desc.notification)
print "%-25s %s" % ("Origin Class Names:", desc.originClassNames)

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2019 Esri. | Privacidad | Legal