Click or drag to resize

CPROJiAddDocumentWithoutOpening Method

Adds (and opens) a document file in the current project.

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntax
public static int iAddDocumentWithoutOpening(
	CGXNETCore gxNetShared,
	string name,
	string type
)

public static int iAddDocumentWithoutOpening(
	CGXNETCore gxNetShared,
	string name,
	string type
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
name
Type: SystemString
Document name
type
Type: SystemString
Type of document to add

Return Value

Type: Int32
0 - Ok 1 - Error
Remarks
The passed file name must be a valid file name complete with an extension and qualifiers (if applicable). The type string can be one of the following: Database Grid Map 3DView Geosurface Voxel VoxelInversion GMS3D GMS2D
See Also