This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGlobeDocument Interface > IGlobeDocument.SaveAs Method (ArcObjects .NET 10.4 SDK) |
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 );
Optional Values
[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(VARIANT_TRUE)] bUseRelativePaths is a parameter of type VARIANT_BOOL bCreateThumnbail [in, optional, defaultvalue(VARIANT_TRUE)] bCreateThumnbail is a parameter of type VARIANT_BOOL
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.
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);
}