Special Tcl commands>Sets>Definition
GiD_Sets get
To handle the definition of postprocess sets (similar to preprocess layers)
- GiD_Sets get color|visible|type|num_entities|id <set_name>
To obtain the current value of some property:
- type: set type. could be 0==unknown, 1==mesh, 2==set, 3==cut
- num_entities: the total number of mesh elements that belong to the set
- id: the numeric identifier of the set
Special Tcl commands>Sets>Entities
GiD_EntitiesSets get|entity_sets
To handle the entities that belong to postprocess sets (similar to preprocess layers)
- GiD_EntitiesSets get|entity_sets
To know the entities of a set or to know the sets of an entity
- GiD_EntitiesSets get <set_name> nodes|elements|all_mesh ?-count?
...
- GiD_EntitiesSets entity_sets nodes|elements <id>
To get the set that contain the element <id> or the list of set that contain a node <id> (the sets that contain elements with the node as vertex)
Example:
set element_21_set [GiD_EntitiesSets entity_sets elements 21]
set node_8_sets [GiD_EntitiesSets entity_sets nodes 8]