GXEMAPTEMPLATE class¶
-
class
geosoft.gx.
GXEMAPTEMPLATE
¶ The EMAPTEMPLATE class provides access to a map template as displayed within Oasis montaj, but does not change data within the template itself. It performs functions such as setting the currently displayed area, or drawing "tracking" lines or boxes on the template (which are not part of the template itself).
Note:
To obtain access to the map template itself, it is recommended practice to begin with an EMAPTEMPLATE object, and use the Lock function to lock the underlying template to prevent external changes. The returned MAPTEMPLATE object may then be safely used to make changes to the template itself. VIRTUAL EMAPTEMPLATE SUPPORT These methods are only available when running in an external application. They allow the GX to open a map template and then create a Virtual EMAPTEMPLATE from that map template. The GX can then call MakeCurrent and set the current EMAPTEMPLATE so that code that follows sees this map template as the current MAPTEMPLATE. Supported methods on Virtual EMAPTEMPLATEs are:
geosoft.gx.GXEMAPTEMPLATE.current()
geosoft.gx.GXEMAPTEMPLATE.make_current()
geosoft.gx.GXEMAPTEMPLATE.have_current()
geosoft.gx.GXEMAPTEMPLATE.current_if_exists()
geosoft.gx.GXEMAPTEMPLATE.lock()
geosoft.gx.GXEMAPTEMPLATE.un_lock()
geosoft.gx.GXEMAPTEMPLATE.get_name()
geosoft.gx.GXEMAPTEMPLATE.loaded()
geosoft.gx.GXEMAPTEMPLATE.load()
geosoft.gx.GXEMAPTEMPLATE.un_load_verify()
geosoft.gx.GXEMAPTEMPLATE.un_load()
geosoft.gx.GXEMAPTEMPLATE.create_virtual()
-
is_null
() → bool¶ Check if the instance of
geosoft.gx.GXEMAPTEMPLATE is null (undefined)
Returns: True if this is a null instance of geosoft.gx.GXEMAPTEMPLATE
, False otherwise.Return type: bool`
-
static
null
() → GXEMAPTEMPLATE¶ A null (undefined) instance of
geosoft.gx.GXEMAPTEMPLATE
Returns: A null geosoft.gx.GXEMAPTEMPLATE
Return type: geosoft.gx.GXEMAPTEMPLATE
-
EMAPTEMPLATE_PATH constants¶
Four forms
-
gx.
EMAPTEMPLATE_PATH_FULL
= 0¶
d:\directory\file.gdb
-
gx.
EMAPTEMPLATE_PATH_DIR
= 1¶
\directory\file.gdb
-
gx.
EMAPTEMPLATE_PATH_NAME_EXT
= 2¶
file.gdb
-
gx.
EMAPTEMPLATE_PATH_NAME
= 3¶
file