On Sunday 27 February 2005 03:10, LI Hai-tao wrote: Hello, I downloaded the post lib from URL ftp://gid.cimne.upc.es/pub/gid/Tools/gidpost1.5.tgz . When I try to link the example testpostfor.obj, an error appears: testpostfor.obj : error LNK2001: unresolved external symbol
_GID_BEGINSCALARRESU mailto:_GID_BEGINSCALARRESULT at 56LT at 56. I recompiles the source, the same error appear also. So can you give me a right or a new version GiD post lib. Thanks in advances. LI Hai-tao
hank you Enrique for the response but my problem is more complicate
I assign materials to several mesh elements.
When I use the command GiD_Info materials in a Tcl script, I obtain a
number for each material assigned.
2. When I use the *MatNum function in the .bas file, I have got other
numbers for the same materials assigned to the same entities !
3. and when I export my mesh in a GID mesh file (.msh in ASCII format) I
obtain other numbers, still different, assigned to the 3 nodes elements
(last column of the file) !!
So, I am lost because I need in my .dat file the numbers contained in
the last columns of the .msh file and these numbers should be associated
to the properties of materials assigned (.mat). But I don’t know how to
call the good function which will give me the good association
number/material. Is it possible to do that ?
Thr GiD-Tcl GiD_Info materials command returns the list of all current defined materials
for example:
1- Mat A
2- Mat B
3- Mat C
If you for example only assing to your model the material B and C, and use a template .bas (*MatNum) to write the calculation file, then unused materials are ignored in the new output material numeration (tho avoid numeration jumps):
Mat A - unused
Mat B - output num= 1
Mat C - output num= 2
In other hand, if you export a GID mesh file (.msh in ASCII format), the numeration is the initial one.
Mat B - output num= 2
Mat C - output num= 3
You can for example avoid to mix this two outpur types. Don’t use “export GID mesh file”, can also write the mesh from the .bas template:
Or you can also write from the .bas file auxiliarty information to identify the number with the material name (*MatProp(0))
*loop materials
*MatNum *MatProp(0)
*end materials
hank you Enrique for the response but my problem is more complicate I assign materials to several mesh elements. 1. When I use the command GiD_Info materials in a Tcl script, I obtain a number for each material assigned. 2. When I use the *MatNum function in the .bas file, I have got other numbers for the same materials assigned to the same entities ! 3. and when I export my mesh in a GID mesh file (.msh in ASCII format) I obtain other numbers, still different, assigned to the 3 nodes elements (last column of the file) !! So, I am lost because I need in my .dat file the numbers contained in the last columns of the .msh file and these numbers should be associated to the properties of materials assigned (.mat). But I don’t know how to call the good function which will give me the good association number/material. Is it possible to do that ? Thank you again for your response. G.W.R. Geis
The numeration used in the .msh file is really difficult to used,
especially if one uses differents BOOKS and if the user define several
new materials belonging to different BOOKS, so I think I gonna write the
mesh file from the .bas file. It is a good idea !
Thank you again.
G.W.R. Geis
Enrique Escolano a écrit :
Thr GiD-Tcl GiD_Info materials command returns the list of all current defined materialsfor example:1- Mat A2- Mat B3- Mat C If you for example only assing to your model the material B and C, and use a template .bas (*MatNum) to write the calculation file, then unused materials are ignored in the new output material numeration (tho avoid numeration jumps):Mat A - unusedMat B - output num= 1Mat C - output num= 2 In other hand, if you export a GID mesh file (.msh in ASCII format), the numeration is the initial one.Mat B - output num= 2Mat C - output num= 3 You can for example avoid to mix this two outpur types. Don’t use “export GID mesh file”, can also write the mesh from the ..bas template: Or you can also write from the .bas file auxiliarty information to identify the number with the material name (*MatProp(0))*loop materials *MatNum *MatProp(0)*end materials Regards Enrique Escolano ----- Original Message -----From: “IEEA” ieea at club-internet.frTo: “GIDliste” gidlist at gatxan.cimne.upc.esSent: Tuesday, March 01, 2005 9:18 AMSubject: Re: [GiDlist] Material number & Material name hank you Enrique for the response but my problem is more complicate I assign materials to several mesh elements. 1. When I use the command GiD_Info materials in a Tcl script, I obtain a number for each material assigned. 2. When I use the *MatNum function in the .bas file, I have got other numbers for the same materials assigned to the same entities ! 3. and when I export my mesh in a GID mesh file (.msh in ASCII format) I obtain other numbers, still different, assigned to the 3 nodes elements (last column of the file) !! So, I am lost because I need in my .dat file the numbers contained in the last columns of the .msh file and these numbers should be associated to the properties of materials assigned (.mat). But I don’t know how to call the good function which will give me the good association number/material. Is it possible to do that ? Thank you again for your response. G.W.R. Geis