I have been struggling with writing code for recreation of Relationship class in C# but I cannot swim out 😞
I need to recreate Relationship Class in FGDB using .NET in order to change following properties of the Relationship Class:
I imagine some kind or process would be:
I see that in Pro 3.1 there is RelationshipClassDescription Class with which I could easily solve the probelm, but unfortunately I need to implement this task in Pro 2.9.6.
Thanks in advance for any suggestion.
Hi,
SchemaBuilder object has methods for relationship management but not in 2.9.
https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic40915.html
More documentation and samples in ProConcepts DDL
Before release 3.0 you have to use the 'Create Relationship Class' Geoprocessing Tool in order to create a relationship class. Since it's somewhat difficult to figure out the parameters to run a GP Tool you can follow the steps outlined in the slides for the 2023 Demo theater session (download) 'How to Run GP Tools from Your Add-in' here: Tech Sessions · ArcGIS/arcgis-pro-sdk Wiki (github.com)
Thanks for the info.
In this case I would rather implement Relationship class change in arcpy and wait for our upgrade to Pro 3.0.