ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

RelationshipClass properties

  • Résumé
  • Propriétés
  • Exemple de code

Résumé

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".

Propriétés

PropriétéExplicationType de données
backwardPathLabel
(Lecture seule)

The backward path label for the relationship class.

String
cardinality
(Lecture seule)

The cardinality for the relationship class.

  • OneToOne
  • OneToMany
  • ManyToMany
String
classKey
(Lecture seule)

Class key used for the relationship class.

  • Undefined
  • ClassID
  • ClassCode
String
destinationClassKeys
(Lecture seule)

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

tuple
destinationClassNames
(Lecture seule)

A list containing the names of the destination classes.

String
forwardPathLabel
(Lecture seule)

The forward path label for the relationship class.

String
isAttachmentRelationship
(Lecture seule)

Indicates if the relationship class represents a table attachment.

Boolean
isAttributed
(Lecture seule)

Indicates if the relationships in this relationship class have attributes.

Boolean
isComposite
(Lecture seule)

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

Boolean
isReflexive
(Lecture seule)

Indicates if the origin and destination sets intersect.

Boolean
keyType
(Lecture seule)

Key type for the relationship class.

  • Single
  • Dual
String
notification
(Lecture seule)

The notification direction for the relationship class.

  • None
  • Forward
  • Backward
  • Both
String
originClassNames
(Lecture seule)

A list containing the names of the origin classes.

String
originClassKeys
(Lecture seule)

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

tuple
relationshipRules
(Lecture seule)

The relationship rules that apply to this relationship class.

String

Exemple de code

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

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

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

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2019 Esri. | Confidentialité | Légal