GiD_AssignData only in one field
Posted: Fri Oct 18, 2019 2:59 pm
Hello,
I'm trying to assign a variable in a specific field, however, with this function I have to specify also a value for the other fields that I don't want to change.
Here my code:
set values [list SCS {0.0} {0.0} {0.0} $cn {0.0} {0.0} {0.0} {0.0} {0.0} {0.0} {0.0}]
catch {
GiD_AssignData condition Losses_Model body_elements $values [lindex $aa 0]
}
When I use this function to assign the value $cn in the fourth field, I change the others to "0.0". Is there any way to assign one field (one position in the list) without affect the previous values of the fields?
Thanks in advance!
I'm trying to assign a variable in a specific field, however, with this function I have to specify also a value for the other fields that I don't want to change.
Here my code:
set values [list SCS {0.0} {0.0} {0.0} $cn {0.0} {0.0} {0.0} {0.0} {0.0} {0.0} {0.0}]
catch {
GiD_AssignData condition Losses_Model body_elements $values [lindex $aa 0]
}
When I use this function to assign the value $cn in the fourth field, I change the others to "0.0". Is there any way to assign one field (one position in the list) without affect the previous values of the fields?
Thanks in advance!