GAD-Object Functions
There are many possibilities to manipulate GAD-objects from Python. Here, API functions are given to get GAD-information. Use this GAD-information with the commands recordable from GadGeo to create special structures.
gd.getGADMode
Returns the GAD mode as an integer.
- 0: The current voxel geometry only consists of GAD-objects.
- 1: The current voxel geometry contains not only GAD-objects.
- 2: No GAD-objects are loaded.
Input: None
Example:
|
gd.getNumberOfGADObjects
Returns the number of loaded GAD objects as an integer.
Input: None
Example:
|
gd.getGADObject
Returns the settings of the GAD object with the given index id (first object has id 1) as a Python dictionary.
Input:
- GAD object ID, integer
- GeoDict version, string
Example:
For an example see getSelectedGADObjects below.
|
gd.getSelectedGADObjects
Returns a list containing the IDs of the currently selected GAD objects.
Input: None
Example:
For the following example, a structure has to be loaded and one or more GAD Objects must be selected:
|