<?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 IGlobeDocument.SaveAs Method sample code problem in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iglobedocument-saveas-method-sample-code-problem/m-p/313921#M8176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the sample code in: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000ts5000000"&gt;http://resourcesbeta.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000ts5000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;that Saves a Globe Document throw a compilation error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the code from the sample is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Save_GlobeDocument_FromEngine(IGlobe pGlobe)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; IGlobeDocument pGlobeDocument = new GlobeDocumentClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; pGlobeDocument.GlobeObject = pGlobe;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //Save the globe document&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; pGlobeDocument.SaveAs("C:\\temp\\myGlobeDocument.3dd", true, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The errors I'm getting are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 1: The type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' has no constructors defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 2: Interop type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' cannot be embedded. Use the applicable interface instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Engine Prerelease with VS2010 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please advise me how to use this interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hila Morag&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 12:40:20 GMT</pubDate>
    <dc:creator>HilaMorag</dc:creator>
    <dc:date>2012-05-03T12:40:20Z</dc:date>
    <item>
      <title>IGlobeDocument.SaveAs Method sample code problem</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iglobedocument-saveas-method-sample-code-problem/m-p/313921#M8176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the sample code in: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000ts5000000"&gt;http://resourcesbeta.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000ts5000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;that Saves a Globe Document throw a compilation error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the code from the sample is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void Save_GlobeDocument_FromEngine(IGlobe pGlobe)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; IGlobeDocument pGlobeDocument = new GlobeDocumentClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; pGlobeDocument.GlobeObject = pGlobe;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //Save the globe document&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; pGlobeDocument.SaveAs("C:\\temp\\myGlobeDocument.3dd", true, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The errors I'm getting are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 1: The type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' has no constructors defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 2: Interop type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' cannot be embedded. Use the applicable interface instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Engine Prerelease with VS2010 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please advise me how to use this interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hila Morag&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 12:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iglobedocument-saveas-method-sample-code-problem/m-p/313921#M8176</guid>
      <dc:creator>HilaMorag</dc:creator>
      <dc:date>2012-05-03T12:40:20Z</dc:date>
    </item>
  </channel>
</rss>

