<?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>topic Re: arcpy method to create a relationship between features in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533411#M41782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Help docs have a reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 10:27:42 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2013-04-30T10:27:42Z</dc:date>
    <item>
      <title>arcpy method to create a relationship between features</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533410#M41781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear List&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a relationship class (1 : n) between two feature classes (a : B). To relate newly imported features of the feature class B with the individual feature of a I would like to use ArcPy in the same workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an equivalent of the ArcObjects method IRelationshipClass.CreateRelationship(origin, destination)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to any hint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yvo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 08:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533410#M41781</guid>
      <dc:creator>YvoWeidmann</dc:creator>
      <dc:date>2013-04-30T08:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy method to create a relationship between features</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533411#M41782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Help docs have a reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 10:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533411#M41782</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-04-30T10:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy method to create a relationship between features</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533412#M41783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What James provided above is the correct way to create a relationship class using ArcPy. Providing the primary and foreign keys is what establishes the relationship between the features. You can use the arcpy.describe() function for getting access to various properties of the relationship class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create Relationship Class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000mn000000&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;Describe relationship properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/RelationshipClass_properties/018v0000002n000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/RelationshipClass_properties/018v0000002n000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533412#M41783</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2013-05-02T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy method to create a relationship between features</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533413#M41784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yvo, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to use the relationship class describe object to get the primary/foreign keys and use arcpy search or insert cursors to make the updates to the records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Insert Cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/InsertCursor/018w0000000t000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/InsertCursor/018w0000000t000000/&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;Search Cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/SearchCursor/018w00000011000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 16:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533413#M41784</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2013-05-02T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy method to create a relationship between features</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533414#M41785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What Yvo probably wanted and what I'm trying to do as well is to access data in the destination table related to the origin table via relationship class using arcpy cursors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set the cursor on the origin feature class, I can only retrieve the field values that are physically stored in that table. But I need to access the data from the related record(s) in the destination table as well. Similarly than you can browse the related data in the identify window in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I really have to treat the two tables separately and reestablish the connection manually using two cursors and then running the search cursor in a loop to retrieve data from the destination table as Russel suggested?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 14:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-method-to-create-a-relationship-between/m-p/533414#M41785</guid>
      <dc:creator>MatejTacer</dc:creator>
      <dc:date>2013-05-09T14:30:11Z</dc:date>
    </item>
  </channel>
</rss>

