Versions Compared

Key

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

Special Tcl commands>Groups>Definition
GiD_Groups create|clone|delete|edit|get|list|window|exists|is_forbidden_name|draw|end_draw

    • GiD_Groups create <group>

...

Finish drawing groups.
Special Tcl commands>Groups>Entities
GiD_EntitiesGroups assign|unassign|get|entity_groups
To handle the entities that belong to groups
Note: GiD_WriteCalculationFile could be interesting to tranverse an print data based on groups without the extra cost of GiD_EntitiesGroups serializing potentially big lists of entities.

    • GiD_EntitiesGroups assign|unassign|get <group> ?-also_lower_entities? <over> <selection>

...

To get the list of entities of kind <over> that belong to <group>.
If <over> is faces then is obtained a list with 2 sublists: element id's and face id's
If <over> is all_geometry then is obtained a list with 4 sublists: point id's, line id's, surface id's and volume id's
If <over> is all_mesh then is obtained a list with 3 sublists: node id's, element id's, face id's (and face id's is a list with 2 items: element id's and face id's)
if -count is speficified, then only the number of objects is returned instead of its list.
if -element_type <types_allowed> is specified then only the types of elements listed in <types_allowed> will be taken into account. <types_allowed> must be a list of triangle quadrilateral, etc.
if -visible is specified, then only the entities visible must be taken into account
In fact it is returned an 'objarray': a Tcl_Obj object specialized for arrays, implemented as a Tcl package named 'objarray'. (for more information see scripts\objarray\objarray.pdf)

    • GiD_EntitiesGroups entity_groups <over> <id>

...