Click or drag to resize

CPROJiGetCommandEnvironment Method

The current command environment

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntax
public static int iGetCommandEnvironment(
	CGXNETCore gxNetShared
)

public static int iGetCommandEnvironment(
	CGXNETCore gxNetShared
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore

Return Value

Type: Int32
<define>COMMAND_ENV</define> Notes We are moving towards embedded tools and menus and this setting can be queried from the project to determine how specific commands should react. Only 3D viewer is currently making use of this. If new Command environment enum values are added, then update the iGetCommandEnvironment_PROJ() function in geogxgui\gxx_app.cpp and in the COMMAND_ENVIRONMENT enums in geoengine.core\include\obj\objgp.h.
See Also