Navigation: GeoDict 2025 - User Guide > Automation > GeoPy Scripting > Advanced Scripting > GeoDict API |
Scroll |
GeoDict command functions
All actions performed in GeoDict are commands, executable from Python with some variations. Also, the parameter settings of the commands can be read from Python.
This allows to run any GeoDict command that a macro can execute. For commands that produce GDR files, the function returns the name of the generated file, which can be different from the name specified if a file of the same name did already exist, e.g. "PoreSizes_no1.gdr". It is therefore recommended to use the returned file name when analyzing the results. Input:
Example: In the following example, the function is used to terminate GeoDict. For other examples, see also below under the getViewStatus or the getBuiltinDefaults command.
|
Works similar to gd.runCmd, but ignores unnecessary keys in the Python dictionary of the command. Input:
|
Executes a command from a *.gps file, that can be obtained directly from a dialog. The command has no return value. Input:
Example: If the desired settings for a fiber structure are saved from the FiberGeo Create Options dialog into a *.gps file with the name FiberGeo.gps, the fiber structure can be created with this command:
|
Returns the built-in default argument dictionary for a command. This can then be modified and passed to gd.runCmd. Input:
Example:
|
Returns the current settings argument dictionary for a command. This can then be modified and passed to gd.runCmd. Input:
Example:
|
Sets the settings for the given GeoDict command in the corresponding options dialog. Input:
Example:
|
©2025 created by Math2Market GmbH / Imprint / Privacy Policy