Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Primary/Foreign Key from Relationship Class

$
0
0
I was able to get the relationshipClassNames property to work (thanks Xander!), but did not realize the relationshipClass property did not have a primary and foreign key field.

Code:

arcpy.Describe(arcpy.MakeTableView_management(table, table + "_view")).relationshipClassNames:
I tried using some code from this thread, but get an empty value [].

Code:

fields = arcpy.Describe(relationshipName).fields
print fields

Any ideas on how to get the primary/foreign keys from a relationship class?

Viewing all articles
Browse latest Browse all 2485

Trending Articles