Click or drag to resize
CPROJiSaveCloseDocuments Method
Saves and closes (if visible) documents contained in the current project.

Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
This wrapper brings up the save dialog tool to allow the user to save the modified documents for this project. Only documents that have actually changed will be listed. The type string can be one of the following: Database Grid Map 3DView Voxel VoxelInversion GMS3D GMS2D All
Syntax
public static int iSaveCloseDocuments(
	CGXNETCore gxNetShared,
	string type
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
type
Type: SystemString
Type of document to save / close

Return Value

Type: Int32
0 - Ok -1 - User hit cancel in save dialog 1 - Error
See Also