Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GiD-Tcl special commands to manage books, materials, conditions, intervals, general data or local axes:
Special Tcl commands>Data (problemtype classic)>Books
GiD_Book material|condition create|set|exists
To create or know if a book of materials or conditions exists, or to set its current book.
Books are like a container to visually separe materials or conditions in submenus and different windows

  • GiD_Book material|condition create <book>

To create a new book named <book> in the collection of books of materials or conditions

  • GiD_Book material|condition set <book> <name>

To set as <book> as current book of a material or condition named <name>

  • GiD_Book material|condition exists <book>

...


For the 'exists' operation, if only the <name> field is specified, 1 is returned if this name exists, and 0 if it does not. If the other values are also apecified, <name> is ignored.
The value returned is:
-1 if the global axes match;
-2 if the automatic local axes match;
-3 if the automatic alternative local axes match;
0 if it does not match with any axes;
<n> if the user-defined number <n> (n>0) local axes match.
Example:
GiD_LocalAxes create "axes_1" rectangular C_XY_X {0 0 0} {0 1 0} {1 0 0}
GiD_LocalAxes delete axes_1
GiD_LocalAxes exists axes_1
GiD_LocalAxes exists "" rectangular C_XY_X {0 0 0} {0 1 0} {1 0 0}
this last sample returns -1 (equivalent to global axis)
Special Tcl commands>Data (problemtype classic)>Units
GiD_Units edit|get magnitude_units|magnitudes|model_unit_length|system ?<value>?
To allow get or modify units and magnitudes.
Note: units doesn't exists without load a problemtype that define them

  • GiD_Units get magnitude_units <magnitude>

Returns the list of allowed units for the <magnitude> (of the current unit system)
<magnitude> must be one of the values returned by [GiD_Units get magnitudes]

  • GiD_Units get magnitudes

Returns the list of defined magnitudes

  • GiD_Units get system

To return the current units system string
e.g.
GiD_Units get system
-> SI

  • GiD_Units edit system <value>

...

To return the current geometry length unit string.
This unit declare the length unit of the coordinates of the geometry or mesh
e.g.
GiD_Units get model_unit_length
-> m

  • GiD_Units edit model_unit_length <value>

...