IGlobeDocument.SaveAs Method sample code problem

507
0
05-03-2012 05:40 AM
HilaMorag
Esri Contributor
Hello,

the sample code in:
http://resourcesbeta.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000ts5000000
that Saves a Globe Document throw a compilation error.

the code from the sample is:

private void Save_GlobeDocument_FromEngine(IGlobe pGlobe)

{

   IGlobeDocument pGlobeDocument = new GlobeDocumentClass();

   pGlobeDocument.GlobeObject = pGlobe;

   //Save the globe document

   pGlobeDocument.SaveAs("C:\\temp\\myGlobeDocument.3dd", true, false);

}

The errors I'm getting are:
Error 1: The type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' has no constructors defined
Error 2: Interop type 'ESRI.ArcGIS.GlobeCore.GlobeDocumentClass' cannot be embedded. Use the applicable interface instead.

I'm using Engine Prerelease with VS2010 SP1

Can you please advise me how to use this interface.

Regards,
Hila Morag
0 Kudos
0 Replies