This document is archived and information here might be outdated.  Recommended version.


IGlobeDocument.SaveAs Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IGlobeDocument.SaveAs Method

Save the contents of the globe document to the specified file name.

[Visual Basic .NET]
Public Sub SaveAs ( _
    ByVal bsDocument As String, _
    [ByVal bUseRelativePaths As Boolean], _
    [ByVal bCreateThumnbail As Boolean] _
)
[C#]
public void SaveAs (
    string bsDocument,
    bool bUseRelativePaths,
    bool bCreateThumnbail
);
[C++]
HRESULT SaveAs(
  BSTR bsDocument,
  VARIANT_BOOL bUseRelativePaths,
  VARIANT_BOOL bCreateThumnbail
);
[C++]

Parameters bsDocument [in]
bsDocument is a parameter of type BSTR bUseRelativePaths [in, optional, defaultvalue()]
bUseRelativePaths is a parameter of type bool bCreateThumnbail [in, optional, defaultvalue()]
bCreateThumnbail is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Saves the GlobeDocument that is Open and any changes that have been made to it to a new GlobeDocument with the specified filename. The filename that is supplied must be valid and include the *.3dd extension.

[C#]

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);

}

See Also

IGlobeDocument Interface