The result is returned formatted as a Tcl list for computers not for humans.
You don't need to apply any expensive regular expression to match parts !!
The result is a list of items (the condition is applied to more than an entity)
and each item is also a list with
letter_code entity_id - value1 ... valuen
letter_code allow know the type of entity
entity_id is the entity id that do you want to know
- is a separator that doen't has any meaning
value1 to value2 are the values of the questions defined for the condition
letter_code it is
E for all geometric items
N for node
E for element
the 'element faces' is an special case, because there is formed by two ids: the element id and the local face id (from 1 to num faces of the element)
in this case the letter_code store the element_id and the entity_id store the local face id
Concluding, in your case
set points [GiD_Info conditions Corner geometry]
-> points = {E 3 -} {E 4 -}
could get a list of the point id with something like this
Code: Select all
set point_ids [list]
foreach item [GiD_Info conditions Corner geometry] {
lappend point_ids [lindex $item 1]
# set question_values [lrange $item 3 end]
}
In your case there are not any question value, I have added a commented line that suggest how to get them if necessary