[GiDlist] loop over conditions
Posted: Wed Mar 05, 2003 7:00 pm
I already made a loop over nodes with a condition set. But the output is
not exactly what I want.
When I made:
*set Cond Point_Déplacement_imposé *nodes
*loop nodes *OnlyInCond
*format "_F(NOEUD='N%i',DX=%f, DY=%f, DZ=%f,),"
*NodesNum*cond(1,real)*cond(2,real)*cond(3,real)
*end nodes
the output was
NOEUD='N3',DX=10.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,'
NOEUD='N7',DX=0.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,'
What I would like to have is:
Condition1 DX=10.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000
Condition2 DX=0.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,
and then
NOEUD='N3' Condition1
NOEUD='N7' Condition2
I would also want to make a list of all nodes that have assigned
condition1 and all nodes that have assigned condition2
Is there any way to do it?
Best regards,
-------------------------------------------------
Mihai TEODORESCU
Email: mihai.teodorescu at prevost-industries.com
-------------------------------------------------
not exactly what I want.
When I made:
*set Cond Point_Déplacement_imposé *nodes
*loop nodes *OnlyInCond
*format "_F(NOEUD='N%i',DX=%f, DY=%f, DZ=%f,),"
*NodesNum*cond(1,real)*cond(2,real)*cond(3,real)
*end nodes
the output was
NOEUD='N3',DX=10.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,'
NOEUD='N7',DX=0.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,'
What I would like to have is:
Condition1 DX=10.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000
Condition2 DX=0.000000, DY=0.000000, DZ=0.000000, DRX=0.000000,
DRY=0.000000, DRZ=0.000000,
and then
NOEUD='N3' Condition1
NOEUD='N7' Condition2
I would also want to make a list of all nodes that have assigned
condition1 and all nodes that have assigned condition2
Is there any way to do it?
Best regards,
-------------------------------------------------
Mihai TEODORESCU
Email: mihai.teodorescu at prevost-industries.com
-------------------------------------------------