<?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: Get Origin and destination feature class names from relationship class in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158307#M4159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well assuming you have the relationship class object, the IRelationshipClass.OriginClass property is an IFeatureclass that you cast to IDataset.&amp;nbsp; The syntax depends on your language of choice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VB.NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim originDataset as IDataset = DirectCast(relClass.OriginClass, IDataset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim name as string = originDataset.Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C# &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataset originDataset = (IDataset)relClass.OriginClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string name = originDataset.Name&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 19:01:08 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2012-01-20T19:01:08Z</dc:date>
    <item>
      <title>Get Origin and destination feature class names from relationship class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158304#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to find the Origin featureclass name and the Destination feature class name programatically through vb.net but could not see while implementing Irelationshipclass Interface to get the Feature class name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We could find the property which specifies the alias name but one cannot reach to the feature class using alias name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest how to fetch the information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roobesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 17:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158304#M4156</guid>
      <dc:creator>RoobeshModi</dc:creator>
      <dc:date>2012-01-19T17:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Origin and destination feature class names from relationship class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158305#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the origin and destination featureclass are returned of type IFeatureclass interface but they are a FeatureClass class.&amp;nbsp; You need to cast the IFeatureClass to an IDataset which has the name property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 17:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158305#M4157</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-01-19T17:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Origin and destination feature class names from relationship class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158306#M4158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I cast so that I get the Featureclass name related to my other featureclass though relationship class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 18:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158306#M4158</guid>
      <dc:creator>RoobeshModi</dc:creator>
      <dc:date>2012-01-20T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Origin and destination feature class names from relationship class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158307#M4159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well assuming you have the relationship class object, the IRelationshipClass.OriginClass property is an IFeatureclass that you cast to IDataset.&amp;nbsp; The syntax depends on your language of choice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VB.NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim originDataset as IDataset = DirectCast(relClass.OriginClass, IDataset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim name as string = originDataset.Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C# &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDataset originDataset = (IDataset)relClass.OriginClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string name = originDataset.Name&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 19:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-origin-and-destination-feature-class-names/m-p/158307#M4159</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-01-20T19:01:08Z</dc:date>
    </item>
  </channel>
</rss>

