GXMXD class

class geosoft.gx.GXMXD
A MXD wraps and provides manipulation and usage for
the content of an ArcGIS MXD file.
commit() → None:
Commit any changes to a MXD.
Returns:Nothing
Return type:None

New in version 7.0.0.

static create((GXContext)ctx, (str)arg1) → GXMXD:
Create a MXD.
Parameters:
Returns:

MXD Object

Return type:

geosoft.gx.GXMXD

New in version 7.0.0.

static create_metadata((GXContext)ctx, (str)arg1) → None:
Create metadata for this brand new MXD (we are the creator)
Parameters:
Returns:

Nothing

Return type:

None

New in version 7.0.0.

discard() → None:
Discard all changes made to the MXD.
Returns:Nothing
Return type:None

New in version 7.0.0.

is_null() → bool

Check if the instance of geosoft.gx.GXMXD is null (undefined)

Returns:True if this is a null instance of geosoft.gx.GXMXD, False otherwise.
Return type:bool`
static null() → GXMXD

A null (undefined) instance of geosoft.gx.GXMXD

Returns:A null geosoft.gx.GXMXD
Return type:geosoft.gx.GXMXD
save_as_map((str)arg1, (bool)arg2) → None:
Save MXD as Geosoft map
Parameters:
  • arg1 (str) – Geosoft map file name
  • arg2 (bool) – Export focus map only? bool
Returns:

Nothing

Return type:

None

New in version 7.0.0.

save_as_mxd((str)arg1) → None:
Save MXD as a MXD in different location
Parameters:arg1 (str) – MXD file name
Returns:Nothing
Return type:None

New in version 7.0.0.

static sync((GXContext)ctx, (str)arg1) → None:
Syncronize any Metadata for this MXD
Parameters:
Returns:

Nothing

Return type:

None

New in version 7.0.0.