¡Muchas Gracias Enrique!
Chau
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: giovedì 14 giugno 2007 7.42
To: gidlist at gatxan.cimne.upc.edu
Subject: Re: [GiDlist] Calculation file before a tool
Hi Andrea
You can create the dat file without start the calculation with: Files-Export-Calculation file
(escape escape Files WriteCalcFile)
You can implement the Tcl-GiD event AfterWriteCalcFileGIDProject , with this prototype
proc AfterWriteCalcFileGIDProject { file error } {
… do your checks and if something is wrong set value -cancel–
set value …
return $value
}
AfterWriteCalcFileGIDProject : will be called just after writing the calculation file and before the calculation process. It is useful for renaming files, or cancelling the analysis.
If it returns -cancel- as a value then the calculation is not invoked.
file: the name of the output calculation file
error: an error code if there is some problem writing the output calculation file.
Enrique
----- 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: Wednesday, June 13, 2007 10:27 PM
Subject: [GiDlist] Calculation file before a tool
Hi GiD team,
I would need to have the .dat files created (like when running
“calculate”) before running a special and complex command.
And only if the command succeded, allow the user to run the calculation
(access to the batch system in GiD).
The bit I don’t know how to do is: how can I ask GiD to create the .dat
files without having it running the batch file?
Is there any way to do it?
Is it possibile to have GiD accessing the batch system without
recreating the .dat files?
Thanks for any suggestion.
Best regards
Andrea Calaon
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/20070614/476712a1/attachment.htm