GiD - The personal pre and post processor

Calculation file

GiD_Event_BeforeWriteCalculationFile: will be called just before writing the calculation file. It is useful for validating some parameters.
If it returns -cancel- as a value then nothing will be written.
file: the name of the output calculation file.

proc GiD_Event_BeforeWriteCalculationFile { file } {
    ...body...
    set value ...
    return $value
}


GiD_Event_AfterWriteCalculationFile: 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.

proc GiD_Event_AfterWriteCalculationFile { file error } {
     ...body...
     set value ...
     return $value
}


GiD_Event_SelectOutputFilenames: allow to select a custom list of output files to be shown by "Calculate->View process info" (in case that we want to not use the list of 'OutFiles' declared in the bat file).

proc GiD_Event_SelectOutputFilenames { filenames } {
     ...
     return $new_filenames
}


COPYRIGHT © 2022 · GID · CIMNE