GiD - The personal pre and post processor

AccessValue


GiD_AccessValue ?-index? set|get ?-default? material|condition|intvdata|gendata ?<name>? <question> ?<attribute>? <value>
To get or set some field values of materials, interval data or general data:
if -index is specified then the material or condition number (starting from 1) will be expected instead of its name
if -default is specified then the get option returns the default value instead of the current value
(the default value is value set in the problemtype file)

  • <name> is the material, condition name or interval number (not necessary for gendata);
  • <question> is a field name;
  • <attribute> is the attribute name to be changed (STATE, HELP, etc.) instead of the field value;
  • <value> is the new field or attribute value.


Example:

GiD_AccessValue set gendata Solver Direct
set mass [GiD_AccessValue -index get material $material_id mass]
set default_value [GiD_AccessValue get -default gendata $question]


COPYRIGHT © 2022 · GID · CIMNE