I tried to use the routine in one of the tlc files I am using.
I use GiD version 8.0.8.
I do some geometry generation in tcl and I would like GiD not to notice it and set the flag to “necessary to remesh”. In fact I change a geometry that I do not mesh.
Here the code:
…
tk_messageBox -message
“Error, the toolpointsout.dat file does not exist.
\nPlease regenerate the mesh or regenerate the file.” -type ok
return
} else {
set finput $result
}
set MustRemeshState [GID_MustRemeshFlag get]
Prepare a special layer for the auto-lines
set layers [GiD_Info Layers]
set ipos [lsearch -exact $layers auto_radial]
…
GiD_Process Layers ToUse $current_layer escape
Turn visible the new lines layer
GiD_Process Layers On auto_radial escape
GID_MustRemeshFlag set $MustRemeshState
.central.s process “redraw”
.central.s waitstate 0
…
Thanks for any suggestion
Regards
Andrea
\
From: gidlist-admin at gatxan.cimne.upc.edu [mailto:gidlist-admin at gatxan.cimne.upc.edu] On Behalf Of PUB: Enrique Escolano
Sent: venerdì 8 giugno 2007 11.11
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] How to use GiD_MustRemeshFlag
This is a GiD-Tcl procedure, that works like is explained in the documentation:
GiD_MustRemeshFlag set|get ?value?
There is a GiD internal flag to indicate that the geometry, conditions, etc. have changed, and that the mesh must be re-generated before calculations are performed.
With this command it is possible to set or get this flag value:
value is only required for set: must be 0 (false), or 1 (true).
Example:
GID_MustRemeshFlag set 1
GID_MustRemeshFlag get
Maybe this command not exists in your GiD version. If it’s an old version update to a more recent one.
You must off course use it at Tcl scripting level, is not a GiD process command !!
Regards
Enrique Escolano
----- Original Message -----
From: “CALAON Andrea Dalmine R&D” acalaon at dalmine.it mailto:acalaon at dalmine.it
To: gidlist at gatxan.cimne.upc.edu mailto:gidlist at gatxan.cimne.upc.edu
Sent: Friday, June 08, 2007 2:08 PM
Subject: [GiDlist] How to use GiD_MustRemeshFlag
Dear GiD team,
in the documentation I found the function
GiD_MustRemeshFlag
I tried to use it but it looks like it does not exist.
(invalid command name)
How can I get the info the function should provide?
Thanks
Andrea Calaon
R&D - Dalmine - Rolling Technology
GiDlist mailing list
GiDlist at gid.cimne.upc.es mailto:GiDlist at gid.cimne.upc.es
_http://gid.cimne.upc.es/mailman/listinfo/gidlist http://gid.cimne.upc.es/mailman/listinfo/gidlist_
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20070608/c0b88fc5/attachment.htm