Source code for geosoft.gxapi.GXARCSYS

### extends 'class_empty.py'
### block ClassImports
# NOTICE: Do not edit anything here, it is generated code
from . import gxapi_cy
from geosoft.gxapi import GXContext, float_ref, int_ref, str_ref


### endblock ClassImports

### block Header
# NOTICE: The code generator will not replace the code in this block
### endblock Header

### block ClassImplementation
# NOTICE: Do not edit anything here, it is generated code
[docs]class GXARCSYS(gxapi_cy.WrapARCSYS): """ GXARCSYS class. This library is not a class. It contains various general system utilities used by the Geosoft extensions for ArcGIS. """
[docs] def __init__(self, handle=0): super(GXARCSYS, self).__init__(GXContext._get_tls_geo(), handle)
[docs] @classmethod def null(cls): """ A null (undefined) instance of `GXARCSYS <geosoft.gxapi.GXARCSYS>` :returns: A null `GXARCSYS <geosoft.gxapi.GXARCSYS>` :rtype: GXARCSYS """ return GXARCSYS()
[docs] def is_null(self): """ Check if this is a null (undefined) instance :returns: True if this is a null (undefined) instance, False otherwise. :rtype: bool """ return self._internal_handle() == 0
# Miscellaneous
[docs] @classmethod def get_browse_loc(cls, path): """ Get the current catalog browser location in ArcGIS :param path: Path String :type path: str_ref .. versionadded:: 8.0 **License:** `Geosoft Open License <https://geosoftgxdev.atlassian.net/wiki/spaces/GD/pages/2359406/License#License-open-lic>`_ **Note:** Gets the "local" directory (current catalog browser location in ArcGIS if map has not been saved, otherwise MxD path). We cannot mess with the CWD in ArcGIS because there MxD settings for relative/absolute paths depends on it. """ path.value = gxapi_cy.WrapARCSYS._get_browse_loc(GXContext._get_tls_geo(), path.value.encode())
[docs] @classmethod def get_current_doc(cls, path): """ Get the current Mx Document file name :param path: Path String :type path: str_ref .. versionadded:: 8.0 **License:** `Geosoft Open License <https://geosoftgxdev.atlassian.net/wiki/spaces/GD/pages/2359406/License#License-open-lic>`_ **Note:** If the current document is not yet saved, this will return an empty string. """ path.value = gxapi_cy.WrapARCSYS._get_current_doc(GXContext._get_tls_geo(), path.value.encode())
[docs] @classmethod def set_browse_loc(cls, path): """ Set the current catalog browser location in ArcGIS :param path: Path String :type path: str .. versionadded:: 8.0 **License:** `Geosoft Open License <https://geosoftgxdev.atlassian.net/wiki/spaces/GD/pages/2359406/License#License-open-lic>`_ **Note:** Will also set the current working directory (CWD) if the MxD has not been saved. We cannot mess with the CWD in ArcGIS because their MxD settings for relative/absolute paths depends on it. """ gxapi_cy.WrapARCSYS._set_browse_loc(GXContext._get_tls_geo(), path.encode())
### endblock ClassImplementation ### block ClassExtend # NOTICE: The code generator will not replace the code in this block ### endblock ClassExtend ### block Footer # NOTICE: The code generator will not replace the code in this block ### endblock Footer