<?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 IRelationshipClass from VersionDataChanges, IModifiedClassInfo - SOLVED in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-irelationshipclass-from-versiondatachanges/m-p/289750#M7522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting all edits in a version by using VersionDataChanges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I create the VDC, I iterate through the results of VersionDataChanges.GetModifiedClassesInfo()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then use the IModifiedClassInfo.ChildClassName to get all the changed ID's for the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is be able to recognize when a IModifiedClassInfo.ChildClassName is for an attributed relationship table, and get an IRelationshipClass for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I open the table, get an ITable, and check if the OIDFieldName == "RID" to tell me if it's an attributed relationship table.&amp;nbsp; Where I am stuck is getting from the ITable to an IRelationshipClass ... or instantiating an AttributedRelationshipClass object somehow to get the IRelationshipClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cmk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[EDIT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it just takes putting the problem down on paper ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataset ids&amp;nbsp; = TABLE as IDataset;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeatureWorkspace ifws = ids.Workspace as IFeatureWorkspace;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IRelationshipClass irc&amp;nbsp; = ifws.OpenRelationshipClass(ids.Name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to avoid another Open(), but it'll do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/EDIT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 12:39:38 GMT</pubDate>
    <dc:creator>ChrisKushnir</dc:creator>
    <dc:date>2013-02-08T12:39:38Z</dc:date>
    <item>
      <title>Get IRelationshipClass from VersionDataChanges, IModifiedClassInfo - SOLVED</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-irelationshipclass-from-versiondatachanges/m-p/289750#M7522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting all edits in a version by using VersionDataChanges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I create the VDC, I iterate through the results of VersionDataChanges.GetModifiedClassesInfo()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then use the IModifiedClassInfo.ChildClassName to get all the changed ID's for the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is be able to recognize when a IModifiedClassInfo.ChildClassName is for an attributed relationship table, and get an IRelationshipClass for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now I open the table, get an ITable, and check if the OIDFieldName == "RID" to tell me if it's an attributed relationship table.&amp;nbsp; Where I am stuck is getting from the ITable to an IRelationshipClass ... or instantiating an AttributedRelationshipClass object somehow to get the IRelationshipClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cmk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[EDIT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it just takes putting the problem down on paper ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataset ids&amp;nbsp; = TABLE as IDataset;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IFeatureWorkspace ifws = ids.Workspace as IFeatureWorkspace;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IRelationshipClass irc&amp;nbsp; = ifws.OpenRelationshipClass(ids.Name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to avoid another Open(), but it'll do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/EDIT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-irelationshipclass-from-versiondatachanges/m-p/289750#M7522</guid>
      <dc:creator>ChrisKushnir</dc:creator>
      <dc:date>2013-02-08T12:39:38Z</dc:date>
    </item>
  </channel>
</rss>

