<?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 Get Layers with Relates? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586383#M15863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcMap, I'm having a bit of trouble with ArcObjects finding each layer in the TOC that has a relate defined.&amp;nbsp; Can anyone point me in the right direction for looping through my layers and finding those that have relates defined on them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally/alternatively, I'll want access on a per-feature basis: for a given relate, returning related attributes for a selected feature.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jan 2011 22:21:43 GMT</pubDate>
    <dc:creator>CaleBerkey</dc:creator>
    <dc:date>2011-01-17T22:21:43Z</dc:date>
    <item>
      <title>Get Layers with Relates?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586383#M15863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcMap, I'm having a bit of trouble with ArcObjects finding each layer in the TOC that has a relate defined.&amp;nbsp; Can anyone point me in the right direction for looping through my layers and finding those that have relates defined on them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally/alternatively, I'll want access on a per-feature basis: for a given relate, returning related attributes for a selected feature.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 22:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586383#M15863</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-17T22:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layers with Relates?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586384#M15864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's one way to check if there are relate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get an ILayer from a loop of TOC layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cast ILayer to an IRelationshipClassCollection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Point an IEnumRelationshipClass at the IRelationshipClassCollection.RelationshipClasses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Get the first IRelationshipClass from IEnumRelationshipClass.Next.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If IRelationshipClass is null then there are no relationships for that layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 00:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586384#M15864</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2011-01-18T00:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layers with Relates?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586385#M15865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply, Jeff.&amp;nbsp; I stumbled across a very similar approach shortly after writing my post, so I'm very happy to see how it resembles your suggestion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 14:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586385#M15865</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-18T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layers with Relates?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586386#M15866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Cale, how's it going?&amp;nbsp; Nice to bump into you on the forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 17:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586386#M15866</guid>
      <dc:creator>SteveFang</dc:creator>
      <dc:date>2011-01-18T17:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Layers with Relates?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586387#M15867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Steve, great to hear from you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Been out of GIS for a while, since I left you guys, but now back in the fold trying to remember everything I learned a few years ago.&amp;nbsp; Nice to see the tighter integration with Visual Studio and .NET these days!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently talked with Sue - feel free to get my email from her and drop me a line.&amp;nbsp; I'd be curious what you guys are up to these days!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 17:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-layers-with-relates/m-p/586387#M15867</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-18T17:43:28Z</dc:date>
    </item>
  </channel>
</rss>

