Hello,
I have some problems to extract conditions.
During execution of .bas file the conditions number is changed from 6 to 0. So
conditions seem to disapear.
test1 is the probleme type definition, t11 is a very simple project.
Thanks for your help
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t11.gid.zip
Type: application/x-zip-compressed
Size: 2073 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040116/bbd01b94/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.gid.zip
Type: application/x-zip-compressed
Size: 3236 bytes
Desc: not available
Url : http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040116/bbd01b94/attachment-0001.bin
[GiDlist] Problems with to extract conditions with .bas
Moderator: GiD Team
[GiDlist] Problems with to extract conditions with .bas
In your code, first are set/add the conditions Groupe_de_mailles_sur_lignes, Groupe_de_mailles_sur_surfaces,Groupe_de_mailles_sur_volumes
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
This command internally creates a table of entities with this condition, to make after a fast loop elems onlyincond.
CondNumEntities contain then the number of elements (all types) with this condition: 6 line elements in your sample
Then you used
*set elems(linear)
This select only line mesh elements (not triangles, etc)
And then use other time
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
Then is created a table of the line elements with this condition : 6 line elements in your sample
then you used
*set elems(triangle)
...
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
And in this last case, not exists any triangle element with this conditions
If you want all element types, after *set elems(triangle), must use *set elems(all)
Regards
Enrique Escolano
----- Original Message -----
From: Hubert at deltacad.fr
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, January 16, 2004 6:23 PM
Subject: [GiDlist] Problems with to extract conditions with .bas
Hello,
I have some problems to extract conditions.
During execution of .bas file the conditions number is changed from 6 to 0. So
conditions seem to disapear.
test1 is the probleme type definition, t11 is a very simple project.
Thanks for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040119/b3e29820/attachment.htm
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
This command internally creates a table of entities with this condition, to make after a fast loop elems onlyincond.
CondNumEntities contain then the number of elements (all types) with this condition: 6 line elements in your sample
Then you used
*set elems(linear)
This select only line mesh elements (not triangles, etc)
And then use other time
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
Then is created a table of the line elements with this condition : 6 line elements in your sample
then you used
*set elems(triangle)
...
*Set Cond Groupe_de_mailles_sur_lignes *elems
*Add Cond Groupe_de_mailles_sur_surfaces *elems
*Add Cond Groupe_de_mailles_sur_volumes *elems
NumberOfCond *CondNumEntities
And in this last case, not exists any triangle element with this conditions
If you want all element types, after *set elems(triangle), must use *set elems(all)
Regards
Enrique Escolano
----- Original Message -----
From: Hubert at deltacad.fr
To: gidlist at gatxan.cimne.upc.es
Sent: Friday, January 16, 2004 6:23 PM
Subject: [GiDlist] Problems with to extract conditions with .bas
Hello,
I have some problems to extract conditions.
During execution of .bas file the conditions number is changed from 6 to 0. So
conditions seem to disapear.
test1 is the probleme type definition, t11 is a very simple project.
Thanks for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040119/b3e29820/attachment.htm