Skip to main content
Notice removed Reward existing answer by Midavalo
Bounty Ended with DWynne's answer chosen by Midavalo
Tweeted twitter.com/StackGIS/status/875017697632845824
Notice added Reward existing answer by Midavalo
Bounty Started worth 100 reputation by Midavalo
added 110 characters in body
Source Link

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal geodatabase, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The above example was created by using ArcCatalog manually, but now I want to do some scripting in Python.

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal geodatabase, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal geodatabase, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The above example was created by using ArcCatalog manually, but now I want to do some scripting in Python.

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

added 3 characters in body
Source Link

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal databasegeodatabase, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal database, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal geodatabase, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

added 180 characters in body
Source Link

I've noticed that it is possible (at least in ArcGIS 10.1) having within either a Personal database or a File Geodatabase, a relationship class and a feature class/table with the same name!. This is by looking at a personal database that it has been given to me. See belowmy example:

enter image description here

The problem I'm having is that I cannot use theafter using arcpy.Describe(path_to_dataset).children function distinctively (they have, in which I can easily list the same path)existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc.

I would like to solve this by using Python, not by changing names manually in Arccatalogand both have the same path.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within either a Personal database or a File Geodatabase, a relationship class and a feature class/table with the same name!. This is by looking at a personal database that it has been given to me. See below:

enter image description here

The problem I'm having is that I cannot use the arcpy.Describe() function distinctively (they have the same path), because ArcGIS picks up by default the fc always, not the rc.

I would like to solve this by using Python, not by changing names manually in Arccatalog.

Any ideas?

I've noticed that it is possible (at least in ArcGIS 10.1) having within a Personal database, a relationship class and a feature class/table with the same name!. This is my example:

enter image description here

The problem I'm having is that after using arcpy.Describe(path_to_dataset).children, in which I can easily list the existing relationship classes by using datatype == "RelationshipClass". Then, I'm unable to access the rc individually on this way:

arcpy.Describe(path_to_rs) because ArcGIS picks up by default the fc always, not the rc, and both have the same path.

Any ideas?

added 180 characters in body
Source Link
Loading
deleted 9 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.5k
  • 29
  • 115
  • 353
Loading
Source Link
Loading