GXPAT class

class geosoft.gx.GXPAT
A PAT object is created from a Geosoft-format pattern file.
It contains all the individual patterns listed in the file.

Notes                You may create your own fill patterns should be added to the "user.pat"
le in the <geosoft>useretc directory.

you wish to add your own fill patterns, create a file named user.pat in
e <geosoft>/User/ directory and add your own fill patterns in the number
nge 20000 to 29999.
static create((GXContext)ctx) → GXPAT:
Creates a pattern object with current default patterns.
Parameters:ctx (geosoft.gx.GXContext) – The GX execution context
Returns:PAT object
Return type:geosoft.gx.GXPAT

New in version 5.0.0.

get_lst((str)arg1, (GXLST)arg2) → None:
Copies all pattern names into a LST object.
Parameters:
  • arg1 (str) – Class name (“” for all classes)
  • arg2 (geosoft.gx.GXLST) – LST Handle
Returns:

Nothing

Return type:

None

New in version 5.0.0.

Note:

Returns a list of the available patterns.
There will always be at least two items,
"None" and "Solid Fill"
is_null() → bool

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

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

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

Returns:A null geosoft.gx.GXPAT
Return type:geosoft.gx.GXPAT