Hi -
Bumping this thread with a related question.
I'm trying to automate creating relationship classes in python (ArcGIS 10.2.1). I am able to get most of the information I need via the Describe call as shown in previous posts. I'd like to get the properties of existing RC's and automate recreating them using the original properties (copy/paste of data not an option).
My issue is that I'm not able to return the Relationship Rules (eg. desc.relationshipRules) as decribed here:
RelationshipClass properties—Help | ArcGIS for Desktop
The documentation is at 10.3 and I am working at 10.2
You can see below that I'm able to return all the properties available for this particular rel class except the Relationship Rules, which, I know exist (also see below).
Has anyone tried to return these relationship rules? Tried to recreate via python? Any success?
Thanks,
Chris
arcpy.Describe(<relationshipclass>).OriginClassKeys or arcpy.Describe(<relationshipclass>).DestinationClassKeys
[(u'OBJECTID', u'OriginPrimary', u''), (u'ParcelID', u'OriginForeign', u'')] [(u'id', u'DestinationPrimary', u''), (u'RenterID', u'DestinationForeign', u'')]
I know this is an old thread, but can anyone provide an updated status on this "enhancement"? NIM048192 I'm trying to write a python script that copies feature classes and relationships across from one GDB to another. But without access to the KEY fields on the relationship, I can't recreate the relates...
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.