hilamsystematics-co-il-esridist

IGlobeDocument.SaveAs Method sample code problem

Discussion created by hilamsystematics-co-il-esridist Employee on May 3, 2012
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

Outcomes