<?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 Read mxd file as IVariantStream in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/read-mxd-file-as-ivariantstream/m-p/1365574#M20626</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have an extension for ArcMap 10.2. The extension implements IPersistVariant interface. I need to call this extension's class methods directly from my code.&lt;/P&gt;&lt;P&gt;I called the startup method&amp;nbsp;passing IApplication as a parameter.&lt;/P&gt;&lt;P&gt;I got&amp;nbsp;IApplication like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var doc = new MxDocumnet(); 
var app = doc.Parent;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I need to call the Load method&amp;nbsp;by passing IVariantStream.&lt;/P&gt;&lt;P&gt;How do I get IVariantStream from a mxd file?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 20:52:16 GMT</pubDate>
    <dc:creator>Usev</dc:creator>
    <dc:date>2024-01-02T20:52:16Z</dc:date>
    <item>
      <title>Read mxd file as IVariantStream</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/read-mxd-file-as-ivariantstream/m-p/1365574#M20626</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have an extension for ArcMap 10.2. The extension implements IPersistVariant interface. I need to call this extension's class methods directly from my code.&lt;/P&gt;&lt;P&gt;I called the startup method&amp;nbsp;passing IApplication as a parameter.&lt;/P&gt;&lt;P&gt;I got&amp;nbsp;IApplication like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var doc = new MxDocumnet(); 
var app = doc.Parent;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I need to call the Load method&amp;nbsp;by passing IVariantStream.&lt;/P&gt;&lt;P&gt;How do I get IVariantStream from a mxd file?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 20:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/read-mxd-file-as-ivariantstream/m-p/1365574#M20626</guid>
      <dc:creator>Usev</dc:creator>
      <dc:date>2024-01-02T20:52:16Z</dc:date>
    </item>
  </channel>
</rss>

