File tree Expand file tree Collapse file tree
kratos.gid/scripts/Writing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
2- proc write::writeConditionsByGiDId { baseUN {cond_id " " } {properties_dict " " }} {
2+ proc write::writeConditionsByGiDId { baseUN {force_write_cond_id " " } {properties_dict " " }} {
33 set root [customlib::GetBaseRoot]
44
55 set xp1 " [ spdAux::getRoute $baseUN ] /condition/group"
6+ if {$force_write_cond_id ne " " } {
7+ set xp1 " [ spdAux::getRoute $baseUN ] /condition\[ @n='$force_write_cond_id '\] /group"
8+ }
69 set groupNodes [$root selectNodes $xp1 ]
710 if {[llength $groupNodes ] < 1} {
811 set xp1 " [ spdAux::getRoute $baseUN ] /group"
912 set groupNodes [$root selectNodes $xp1 ]
1013 }
1114 foreach groupNode $groupNodes {
12- if {$cond_id eq " " } {set condid [[$groupNode parent] @n]} {set condid $cond_id }
15+ if {$force_write_cond_id eq " " } {set condid [[$groupNode parent] @n]} {set condid $force_write_cond_id }
1316 set groupid [get_domnode_attribute $groupNode n]
1417 set groupid [GetWriteGroupName $groupid ]
1518 set mid 0
You can’t perform that action at this time.
0 commit comments