GiD - The personal pre and post processor

GiD_Info unitssystems

GiD_Info unitssystems ?gid|prj|usersys|modunit|prbsys|udstate|magused?

(problemtype classic only)
return information about the sytems of units
GiD_Info unitssystems
return 1 if the problemtype is using units, 0 else
GiD_Info unitssystems gid|prj|usersys|modunit|prbsys|udstate|magused

  • gid

It return a list with the names of the units systems defined in the file gid.uni

  • prj

It return a list with the names of the units systems of the project defined in the file <problemtype>.uni

  • usersys

It return a list with the names of the units systems defined at runtime by the user (in case that it is not disabled by <problemtype>.uni)

  • modunit

It return information about the current length units of the model.
Return a list with three items like "LENGTH 1 0" or "LENGTH 2 1"
the first item is LENGTH, the magnitude name of length
the second item is the index in magnitudes of the current length unit
the third item is 0 if length is defined in the 'gid units set' or 1 if it is defined in the 'problemtype units set'
e.g.
in:
lassign [GiD_Info unitssystems modunit] magnitude_name unit_index set_index
set model_length_unit [lindex [GiD_Info magnitudes $set_index $magnitude_name $unit_index] 1]
out: m

  • prbsys

Is the name of the current unit system to use for the model

  • udstate

return the 'user defined systems' state: 0 or 1 (0 disabled, 1 enabled)

  • magused

List of names of magnitudes used by the model (some magnitudes defined in gid.uni could be neglected to not show them)

COPYRIGHT © 2022 · GID · CIMNE