<?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 Apply class extension to new feature class in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/apply-class-extension-to-new-feature-class/m-p/753130#M19984</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 am have difficulty to apply class extension to new feature class. I use VB.Net in Visual Studio to develop ArcGIS desktop customization under ArcView license. Here is the steps that I follow to apply class extension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add a new ArcGIS class to my project, implementing IClassExtension, IObjectClassExtension, IFeatureClassExtension. (See attachment for code. The code is completely generated by VS, I didn't change anything)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create feature class using FeatureWorkspace.CreateFeatureClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code to create feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim extUID As IUID = New UIDClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;extUID.Value = "{d2ae59fd-c1cd-47f1-8533-bc59a61f0aac}"&amp;nbsp; 'ClassId of Class extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim FeatureClass As IFeatureClass = Me.FeatureWorkspace.CreateFeatureClass(FeatureClassName, FeatureFields, Nothing, extUID, esriFeatureType.esriFTSimple, ShapeFieldName, "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test my codes in VS, the feature class can be succssfully created. I expect EXTCLSID property of FeatureClass to be the extUID value but it appears as Nothing. I cannot figure out why the class extension cannot be applied to the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&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, 25 Oct 2010 17:49:44 GMT</pubDate>
    <dc:creator>ChenglinGan</dc:creator>
    <dc:date>2010-10-25T17:49:44Z</dc:date>
    <item>
      <title>Apply class extension to new feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/apply-class-extension-to-new-feature-class/m-p/753130#M19984</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 am have difficulty to apply class extension to new feature class. I use VB.Net in Visual Studio to develop ArcGIS desktop customization under ArcView license. Here is the steps that I follow to apply class extension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add a new ArcGIS class to my project, implementing IClassExtension, IObjectClassExtension, IFeatureClassExtension. (See attachment for code. The code is completely generated by VS, I didn't change anything)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create feature class using FeatureWorkspace.CreateFeatureClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code to create feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim extUID As IUID = New UIDClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;extUID.Value = "{d2ae59fd-c1cd-47f1-8533-bc59a61f0aac}"&amp;nbsp; 'ClassId of Class extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim FeatureClass As IFeatureClass = Me.FeatureWorkspace.CreateFeatureClass(FeatureClassName, FeatureFields, Nothing, extUID, esriFeatureType.esriFTSimple, ShapeFieldName, "")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test my codes in VS, the feature class can be succssfully created. I expect EXTCLSID property of FeatureClass to be the extUID value but it appears as Nothing. I cannot figure out why the class extension cannot be applied to the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&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, 25 Oct 2010 17:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/apply-class-extension-to-new-feature-class/m-p/753130#M19984</guid>
      <dc:creator>ChenglinGan</dc:creator>
      <dc:date>2010-10-25T17:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Apply class extension to new feature class</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/apply-class-extension-to-new-feature-class/m-p/753131#M19985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it.....I was trying to apply class extension to a feature class resides in In Memory workspace. Custom feature class is not supported by InMemory workspace.:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 18:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/apply-class-extension-to-new-feature-class/m-p/753131#M19985</guid>
      <dc:creator>ChenglinGan</dc:creator>
      <dc:date>2010-10-25T18:19:19Z</dc:date>
    </item>
  </channel>
</rss>

