<?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: Changing IExtension.Name and still get persistant data in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461989#M12518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map documents (mxd) are OLE structured storage.&amp;nbsp; You can open then using tools such as stg or dfview.&amp;nbsp; When you do that what you will find is the the data persisted by an IExtension is stored in a named stream.&amp;nbsp; The name of the stream is what you specified so if you change it then it won't find the information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is none of my business but I wonder why you want/need to rename your extension.&amp;nbsp; If that is really critical for you then you could have an extension with your old name and another extension with your new name.&amp;nbsp; In this case you would have to write code which coordinates all of this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 16:36:01 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-06-20T16:36:01Z</dc:date>
    <item>
      <title>Changing IExtension.Name and still get persistant data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461988#M12517</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 would like to rename my IExtension.Name to something else. When I do that the IPersist.Load isn't called anymore so I lost my persisted data that is already saved with the document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to change the IExtension.Name and then have access to the old persisted data ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 16:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461988#M12517</guid>
      <dc:creator>SebastienBlier</dc:creator>
      <dc:date>2013-06-20T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IExtension.Name and still get persistant data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461989#M12518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map documents (mxd) are OLE structured storage.&amp;nbsp; You can open then using tools such as stg or dfview.&amp;nbsp; When you do that what you will find is the the data persisted by an IExtension is stored in a named stream.&amp;nbsp; The name of the stream is what you specified so if you change it then it won't find the information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is none of my business but I wonder why you want/need to rename your extension.&amp;nbsp; If that is really critical for you then you could have an extension with your old name and another extension with your new name.&amp;nbsp; In this case you would have to write code which coordinates all of this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 16:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461989#M12518</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-06-20T16:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IExtension.Name and still get persistant data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461990#M12519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this look weird but our extension is multilanguage and when we created our extension 10 years ago we put a localized string as the IExtension.Name so when the document is persisted the data is different depending on the current language so if I change the language of the application and restart it then the persisted data isn't loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answering I will try to find a way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 16:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461990#M12519</guid>
      <dc:creator>SebastienBlier</dc:creator>
      <dc:date>2013-06-20T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IExtension.Name and still get persistant data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461991#M12520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a method that we could call to access the persisted data at any moment instead of waiting for IPersist::Load to be called ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 16:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461991#M12520</guid>
      <dc:creator>SebastienBlier</dc:creator>
      <dc:date>2013-06-20T16:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing IExtension.Name and still get persistant data</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461992#M12521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think so and I'm unclear as to how that would help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to get deep then you might try reading the map document (mxd) file yourself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that you could also write a utility which renames your extension in the map document.&amp;nbsp; Of course, your customers would have to run the utility before being able to use existing map documents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 17:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-iextension-name-and-still-get-persistant/m-p/461992#M12521</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-06-20T17:17:42Z</dc:date>
    </item>
  </channel>
</rss>

