I see the way yout solution work. But is not exactly what I need for my
output.
You are right that i need something like the materials way of work.
I would like to have only one line definiton for all the conditions that
have the some value.
Exemple:
Only two conditon definitions (and not as much lines as points)
Condition1 DX =0.0 DY=0.0 DZ=0.0
Condition2 DY=10.0 DY=10.0 DZ=0.0
N1 Condition1
N2 COndition2
N3 Condition1
N4 Condition1
N5 Condition2
Would this be possible?
Thank for your response,
----------------------------------------------------------------------
Mihai TEODORESCU
Email: mihai.teodorescu at prevost-industries.com
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030306/bf2ab29e/attachment.htm
[GiDlist] loop over conditions
Moderator: GiD Team
[GiDlist] loop over conditions
You can ask GiD for the applied conditions from a tcl procedure
for example, if exists a condition named "Point-Load", you can get a list with the entities
and values of this condition using the GiD-tcl command:
set res [.central.s info conditions Point-Load mesh]
This is a sample of the obtained result list: the number of node and your condition values:
{N 11 - 0.0 4} {N 6 - 0.0 1} {N 1 - 0.0 1}
You can modify with tcl this information, to avoid duplications (sorting and avoiding repetitions)
You can call write a tcl procedure, and call it from the bas file with *tcl(procedure_name). The value returned
from this procedure_name is directly send to the output file. You can use \n to obtain a carriage return
for example:
*.tcl file:
proc PrintHelloWorld { } {
set a "hello\n"
append a "world\n"
return $a
}
*.bas file:
print "hello world" using a tcl procedure in two lines:
*tcl(PrintHelloWorld)
See help on Tcl-Tk extension.
Enrique Escolano
----- Original Message -----
From: Mihai TEODORESCU
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, March 06, 2003 5:41 PM
Subject: RE: [GiDlist] loop over conditions
I see the way yout solution work. But is not exactly what I need for my output.
You are right that i need something like the materials way of work.
I would like to have only one line definiton for all the conditions that have the some value.
Exemple:
Only two conditon definitions (and not as much lines as points)
Condition1 DX =0.0 DY=0.0 DZ=0.0
Condition2 DY=10.0 DY=10.0 DZ=0.0
N1 Condition1
N2 COndition2
N3 Condition1
N4 Condition1
N5 Condition2
Would this be possible?
Thank for your response,
----------------------------------------------------------------------
Mihai TEODORESCU
Email: mihai.teodorescu at prevost-industries.com
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030306/dccacf1a/attachment.htm
for example, if exists a condition named "Point-Load", you can get a list with the entities
and values of this condition using the GiD-tcl command:
set res [.central.s info conditions Point-Load mesh]
This is a sample of the obtained result list: the number of node and your condition values:
{N 11 - 0.0 4} {N 6 - 0.0 1} {N 1 - 0.0 1}
You can modify with tcl this information, to avoid duplications (sorting and avoiding repetitions)
You can call write a tcl procedure, and call it from the bas file with *tcl(procedure_name). The value returned
from this procedure_name is directly send to the output file. You can use \n to obtain a carriage return
for example:
*.tcl file:
proc PrintHelloWorld { } {
set a "hello\n"
append a "world\n"
return $a
}
*.bas file:
print "hello world" using a tcl procedure in two lines:
*tcl(PrintHelloWorld)
See help on Tcl-Tk extension.
Enrique Escolano
----- Original Message -----
From: Mihai TEODORESCU
To: gidlist at gatxan.cimne.upc.es
Sent: Thursday, March 06, 2003 5:41 PM
Subject: RE: [GiDlist] loop over conditions
I see the way yout solution work. But is not exactly what I need for my output.
You are right that i need something like the materials way of work.
I would like to have only one line definiton for all the conditions that have the some value.
Exemple:
Only two conditon definitions (and not as much lines as points)
Condition1 DX =0.0 DY=0.0 DZ=0.0
Condition2 DY=10.0 DY=10.0 DZ=0.0
N1 Condition1
N2 COndition2
N3 Condition1
N4 Condition1
N5 Condition2
Would this be possible?
Thank for your response,
----------------------------------------------------------------------
Mihai TEODORESCU
Email: mihai.teodorescu at prevost-industries.com
-----------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030306/dccacf1a/attachment.htm