<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea An Arcpy method for dealing with related records in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idi-p/967721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Relationship classes are great because they allow relationships between two datasets to persist between ArcMap sessions. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When dealing with relationships in scripts generally I create two separate loops in order to retrieve related records. &amp;nbsp;The first loop iterates a spatial file's primary key, while a second, nested loop iterates on the tabular file's foreign key. &amp;nbsp;A list of related records can be created where these two keys match.&lt;BR /&gt;&lt;BR /&gt;An arcpy method that notes the relationship between the two datasets and allows the user to pull out related records more easily would be helpful. &amp;nbsp;Perhaps the relationship class could be used as a parameter along with the two datasets since the relationship class already contains the logic for how the two datasets are related.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2013 14:55:56 GMT</pubDate>
    <dc:creator>RoyHewitt</dc:creator>
    <dc:date>2013-10-18T14:55:56Z</dc:date>
    <item>
      <title>An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idi-p/967721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Relationship classes are great because they allow relationships between two datasets to persist between ArcMap sessions. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When dealing with relationships in scripts generally I create two separate loops in order to retrieve related records. &amp;nbsp;The first loop iterates a spatial file's primary key, while a second, nested loop iterates on the tabular file's foreign key. &amp;nbsp;A list of related records can be created where these two keys match.&lt;BR /&gt;&lt;BR /&gt;An arcpy method that notes the relationship between the two datasets and allows the user to pull out related records more easily would be helpful. &amp;nbsp;Perhaps the relationship class could be used as a parameter along with the two datasets since the relationship class already contains the logic for how the two datasets are related.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 14:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idi-p/967721</guid>
      <dc:creator>RoyHewitt</dc:creator>
      <dc:date>2013-10-18T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967722#M8720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Roy&lt;BR /&gt;Can you describe how you picture the function being used in your scripts?&amp;nbsp; For example do you want a recordset object being returned by the function?&amp;nbsp; That could be converted into an in memory table.&amp;nbsp; Is your workaround not doing what you need?&lt;BR /&gt;&lt;BR /&gt;Regards

&lt;!-- content transformation source ID: 00aE0000004Kv42 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 20:24:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967722#M8720</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2013-10-21T20:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967723#M8721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Having to reconstruct the relationship class programmatically in Python is a lot of overhead (two nested search cursors? yipes) to get a layer that I can then do spatial queries on. The described workaround works, but not efficiently. This is a good idea.

&lt;!-- content transformation source ID: 00aE0000009rEbh --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 19:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967723#M8721</guid>
      <dc:creator>EricaPfister</dc:creator>
      <dc:date>2015-01-23T19:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967724#M8722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;ArcObjects provides functions to quickly access related records in another table when selecting some in one table, through existing relationship classes. Cannot find equivalent in ArcPy. Cannot understand why we have to reinvent the wheel since the relationship is already there. It would be great if that's exposed via ArcPy.&amp;nbsp;

&lt;!-- content transformation source ID: 00aE000000E36D3 --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967724#M8722</guid>
      <dc:creator>jianliu4</dc:creator>
      <dc:date>2015-10-16T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967725#M8723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still miss RESELECT KEYFILE in ArcPlot which would do a similar thing. Select records in table 1 and migrate that selection to another table through a pair of key files in the source and destination table, regardless of 1-M,M-1,or M-N cardinality. Workflows exist in geoprocessing but most are clunky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing this with relates would be very consistent and elegant and also allow the use of stored relationship classes and on the fly relationships created with &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-relate.htm"&gt;Add Relate&lt;/A&gt; in Pro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 21:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967725#M8723</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-07-05T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967726#M8724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;cc:&amp;nbsp;&lt;/STRONG&gt;management:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Subject:&lt;/STRONG&gt; maybe y'all need to hire some more devs... &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/1f440.png" /&gt;&lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/1f44c.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been six years since this idea was posted. It says it's been "reviewed" ...&amp;nbsp;How is this not already a thing? It would be so useful and would be one of the first things I would think of when designing the CONCEPT of relationship classes.&lt;/P&gt;&lt;P&gt;...And come to think of it, I sincerely believe any reasonable person would want&amp;nbsp;the ability to pull all related records with an arcpy function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case in point, I am building out our entire water treatment plant in ArcMap 10.6. We have well over a 1000 assets that need to be tracked. Some of the relationships are up to four levels deep, possibly more.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;TreatmentSystem [Polygon]&amp;nbsp; -&amp;gt; ChemSystem [Table] -&amp;gt; NaOh [Table] -&amp;gt; AuxTank [Table] -&amp;gt; Analyzer &lt;TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the programmer do, write loops on loops on loops -- as the OP mentioned? I couldn't possibly think of a more redundant and inefficient query if I tried.&amp;nbsp;&lt;/P&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/967726#M8724</guid>
      <dc:creator>ChrisZemp</dc:creator>
      <dc:date>2019-12-19T19:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/1297184#M25330</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm happy to share that we're making progress on an ArcPy method for retrieving related records!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:40:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/1297184#M25330</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2023-06-08T15:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: An Arcpy method for dealing with related records - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/1349800#M27022</link>
      <description>&lt;P&gt;This Idea has been implemented in ArcGIS Pro 3.2. Please see the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank"&gt;What's New documentation&lt;/A&gt; for more new features in Pro 3.2.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/an-arcpy-method-for-dealing-with-related-records/idc-p/1349800#M27022</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2023-11-15T17:37:59Z</dc:date>
    </item>
  </channel>
</rss>

