[GiDlist] Field name in a .BAS file.
Posted: Wed Sep 25, 2002 3:33 pm
Hello,
I am writing a .bas file and I would like to ask you whether it is possible to get the name of a field inside a loop over materials. I have written in the .mat file something like :
QUESTION : ELASTIC_MODULUS
VALUE : 205000
and I would like to write in the .dat file :
Material.put(ELASTIC_MODULUS, 205000)
can I get the name of the filed ("ELASTIC_MODULUS") by a command like *MatProp(0) for the material's name, or sould I write for each field :
*loop materials
*MatProp(0).put(ELASTIC_MODULUS, *MatProp(1))
*MatProp(0).put(POISSON_RATIO,*MatProp(2))
....
*end
Thanks,
Christophe Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020925/9eb10413/attachment.htm
I am writing a .bas file and I would like to ask you whether it is possible to get the name of a field inside a loop over materials. I have written in the .mat file something like :
QUESTION : ELASTIC_MODULUS
VALUE : 205000
and I would like to write in the .dat file :
Material.put(ELASTIC_MODULUS, 205000)
can I get the name of the filed ("ELASTIC_MODULUS") by a command like *MatProp(0) for the material's name, or sould I write for each field :
*loop materials
*MatProp(0).put(ELASTIC_MODULUS, *MatProp(1))
*MatProp(0).put(POISSON_RATIO,*MatProp(2))
....
*end
Thanks,
Christophe Louis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020925/9eb10413/attachment.htm