GiD - The personal pre and post processor

set

GiD_Project set <option> ?<0|1>?
To set on off or ask the current state of some options, to control the redraw and wait state of GiD:
<option> could be

disable_graphics|disable_windows|disable_progressbar|disable_warnline|disable_graphinput|disable_writebatch|disable_readbatch|waitstate|windows_layout|last_general_mesh_size

GiD_Project set disable_graphics ?<0|1>?
The value 0/1 Enable/Disable Graphics (GiD does not redraw)

EXAMPLE to disable the redraw:
GiD_Project set disable_graphics 1

GiD_Project set disable_windows ?<0|1>?
The value 0/1 Enable/Disable Windows (GiD displays, or not, windows which require interaction with the user)

EXAMPLE to disable the interaction windows:
GiD_Project set disable_windows 1

GiD_Project set disable_progressbar ?<0|1>?
The value 0/1 Enable/Disable the progress bar (it could be usually of interest to disable_windows but show the advance bar)

GiD_Project set disable_warnline ?<0|1>?
The value 0/1 Enable/Disable printing messages in the lower messages bar.

GiD_Project set disable_graphinput ?<0|1>?
The value 0/1 Enable/Disable GraphInput (enable or disable peripherals: mouse, keyboard, ...)

EXAMPLE to disable the peripherals input:
GiD_Project set disable_graphinput 1

GiD_Project set disable_disable_readbatch ?<0|1>?
The value 0/1 Enable/Disable reading the batch file.

GiD_Project set waitstate ?<0|1>?
The value 0/1 Enable/Disable the Wait state (GiD displays a hourglass cursor in wait state)

EXAMPLE to set the state to wait:
GiD_Project set waitstate 1

Note: Usually these command are used jointly, to temporary disable redraws to accelerate the process.
It is recommended for a Tcl developer to use the more 'user-friendly' procedures defined inside the file 'dev_kit.tcl' (located in the \scripts directory). For example, to disable and enable redraws, you can use:

::GidUtils::DisableGraphics
::GidUtils::EnableGraphics

GiD_Project set windows_layout ?<1 2LR 2UD 3L 3U 3R 3D 4>?
To set or ask the layout of the drawing windows
1-> 1 window
2LR -> 2 windows placed horizontally (Left-Right)
2UD -> 2 windows placed vertically (Up - Down)
3L -> 3 windows, the biggest on the Left
3U-> 3 windows, the biggest Up
3R -> 3 windows, the biggest on the Right
3D -> 3 windows, the biggest Down
4 -> 4 windows

GiD_Project set last_general_mesh_size ?<size>?
The value <size> must be a real positive number to remember in memory the last general mesh size for the next time


GiD_Project set changes_dataset <dataset> ?<0|1>?

To set or get if the dataset has changes and its file must be saved

<dataset> must be one of: "GEOMETRY_DATASET","MESH_DATASET","MESH_DATA_DATASET","RESULTS_DATASET",
"MESH_PREFERENCES_DATASET","GLOBAL_PREFERENCES_DATASET","LAYERS_DATASET","GROUPS_DATASET","GROUP_ENTITIES_DATASET",
"CONDITIONS_DATASET","CONDITION_ENTITIES_DATASET","MATERIALS_DATASET","INTERVALS_DATASET","DIMENSIONS_DATASET",
"UNITS_DATASET","LABELS_DATASET","LOCAL_AXES_DATASET","BACKGROUND_IMAGE_DATASET","RENDER_DATASET",
"EMBEDDED_DISTANCES_DATASET","VIEW_DATASET"

Note: Can set the flag off all kind of datasets with GiD_ModifiedFileFlag set|get ?<value>?


COPYRIGHT © 2022 · GID · CIMNE