GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  • Start/End

GiD_Event_BeforeInitGIDPostProcess
GiD_Event_InitGIDPostProcess
GiD_Event_AfterSetPostModelName
GiD_Event_EndGIDPostProcess

  • GraphsSet

GiD_Event_AfterCreateGraphSet
GiD_Event_BeforeDeleteGraphSet
GiD_Event_AfterDeleteGraphSet
GiD_Event_AfterChangeGraphSet
GiD_Event_AfterRenameGraphSet
GiD_Event_AfterSetGraphSetToUse

  • Graphs

GiD_Event_AfterCreateGraph
GiD_Event_BeforeDeleteGraph
GiD_Event_AfterDeleteGraph
GiD_Event_AfterChangeGraph
GiD_Event_AfterRenameGraph

  • Sets

GiD_Event_AfterCreateSurfaceSet
GiD_Event_AfterCreateVolumeSet
GiD_Event_AfterRenameSurfaceSet
GiD_Event_AfterRenameVolumeSet
GiD_Event_BeforeDeleteSurfaceSet
GiD_Event_BeforeDeleteVolumeSet
GiD_Event_AfterChangeLayersOrSets

  • Cuts

GiD_Event_AfterCreateCutSet
GiD_Event_AfterRenameCutSet
GiD_Event_BeforeDeleteCutSet

  • Results

GiD_Event_AfterLoadResults
GiD_Event_BeforeResultReadErrors
GiD_Event_AfterSetAnalysis
GiD_Event_AfterSetTimeStep
GiD_Event_AfterSetResult
GiD_Event_AfterSetResultComponent
Event procedures>postprocess>Start / End
GiD_Event_BeforeInitGIDPostProcess: will be called just before changing from pre to postprocess, and before read any postprocess file (this event can be used for example to check the results file existence and/or rename files). It has no arguments.
If it returns cancel as a value then the swapping to postprocess mode will be cancelled.
proc GiD_Event_BeforeInitGIDPostProcess {} {
}
GiD_Event_InitGIDPostProcess: will be called when postprocessing starts. It has no arguments.
proc GiD_Event_InitGIDPostProcess {} {
...body...
set value ...
return $value
}
GiD_Event_AfterSetPostModelName
proc GiD_Event_AfterSetPostModelName { name } {
}
GiD_Event_EndGIDPostProcess: will be called when you leave Postprocess and open Preprocess. It has no arguments.
proc GiD_Event_EndGIDPostProcess {} {
}
Event procedures>postprocess>GraphsSet
GiD_Event_AfterCreateGraphSet: will be called when a new graphset is created
proc GiD_Event_AfterCreateGraphSet { name } {
}
GiD_Event_BeforeDeleteGraphSet: will be called just before delete the graphset 'name'
If it returns cancel the deletion is cancelled.
proc GiD_Event_BeforeDeleteGraphSet { name } {
...body...
set value ...
return $value
}
GiD_Event_AfterDeleteGraphSet:
proc GiD_Event_AfterDeleteGraphSet { name } {
}
GiD_Event_AfterChangeGraphSet: property could be: legend_location, title_visible
proc GiD_Event_AfterChangeGraphSet { name property } {
}
GiD_Event_AfterRenameGraphSet:
proc GiD_Event_AfterRenameGraphSet { oldname newname } {
}
GiD_Event_AfterSetGraphSetToUse: will be called when setting 'name' as current graphset to use
proc GiD_Event_AfterSetGraphSetToUse { name } {
}
Event procedures>postprocess>Graphs
GiD_Event_AfterCreateGraph: will be called when a new graph is created
proc GiD_Event_AfterCreateGraph { name } {
}
GiD_Event_BeforeDeleteGraph: will be called just before delete the graph 'name'
If it returns cancel the deletion is cancelled.
proc GiD_Event_BeforeDeleteGraph { name } {
...body...
set value ...
return $value
}
GiD_Event_AfterDeleteGraph:
proc GiD_Event_AfterDeleteGraph { name } {
}
GiD_Event_AfterChangeGraph: property could be: color, contour_fill, line_pattern, line_width, pattern_factor, point_size, style, values, visible
proc GiD_Event_AfterChangeGraph { name property } {
}
GiD_Event_AfterRenameGraph:
proc GiD_Event_AfterRenameGraph { oldname newname } {
}
Event procedures>postprocess>Sets
GiD_Event_AfterCreateSurfaceSet, GiD_Event_AfterCreateVolumeSet: will be called just after a postprocess set of volumes or surfaces is created, providing its name
proc GiD_Event_AfterCreateSurfaceSet { name } {
}
proc GiD_Event_AfterCreateVolumeSet { name } {
}

GiD_Event_AfterRenameSurfaceSet, GiD_Event_AfterRenameVolumeSet: will be called just after a postprocess set of volumes or surfaces has been renamed providing its old and current name
proc GiD_Event_AfterRenameSurfaceSet { oldname newname } {
}
proc GiD_Event_AfterRenameVolumeSet { oldname newname } {
}

GiD_Event_BeforeDeleteSurfaceSet, GiD_Event_BeforeDeleteVolumeSet: will be called just before a postprocess set of volumes or surfaces will be deleted created, providing its name.
If the procedure return cancel then the set won't be deleted
proc GiD_Event_BeforeDeleteSurfaceSet { name } {
#value cancel to avoid deletion
return $value
}
proc GiD_Event_BeforeDeleteVolumeSet { name } {
#value cancel to avoid deletion
return $value
}

GiD_Event_AfterChangeLayersOrSets
proc GiD_Event_AfterChangeLayersOrSets { num_sets num_off num_back num_transparent } {
}
Event procedures>postprocess>Cuts
GiD_Event_AfterCreateCutSet: will be called just after a postprocess cut is created, providing its name
proc GiD_Event_AfterCreateCutSet { name } {
}
GiD_Event_AfterRenameCutSet: will be called just after a postprocess cut has been renamed providing its old and current name
proc GiD_Event_AfterRenameCutSet { oldname newname } {
}
GiD_Event_BeforeDeleteCutSet: will be called just before a postprocess cut will be deleted created, providing its name.
If the procedure return cancel then the cut won't be deleted
proc GiD_Event_BeforeDeleteCutSet { name } {
#value cancel to avoid deletion
return $value
}
Event procedures>postprocess>Results
GiD_Event_AfterLoadResults: will be called when a results file is opened in GiD Postprocess. It receives one argument, the name of the file being opened without its extension.
proc GiD_Event_AfterLoadResults { file } {
}
Note:LoadResultsGIDPostProcess is a deprecated alias of GiD_Event_AfterLoadResults
GiD_Event_BeforeResultReadErrors: filename is the results file that was read, msg is the error message, format provide information about the kind of file: can be "GID_RESULTS_FORMAT", "3DSTUDIO_FORMAT", "TECPLOT_FORMAT", "FEMAP_FORMAT", "XYZ_FORMAT"
Retuning cancel the standard 'Read results error window' won't be opened
proc GiD_Event_BeforeResultReadErrors { filename msg format } {
...body...
set value ...
return $value
}
GiD_Event_AfterSetAnalysis: will be called just after set the current analysis
proc GiD_Event_AfterSetAnalysis { analysis_name } {
}
GiD_Event_AfterSetTimeStep: will be called just after set the current time step.
Step_index is an integer index, starting from 0. (a value of -1 mean any time step)
proc GiD_Event_AfterSetTimeStep { analysis_name step_index } {
}
Note: it is possible to get the value of the step with something like this:
lindex [GiD_Info postprocess get all_steps $analysis_name] $step_index
GiD_Event_AfterSetResult: will be called just after set the current result.
proc GiD_Event_AfterSetResult { analysis_name step_index result_name } {
}
GiD_Event_AfterSetResultComponent: will be called just after set the current result component.
proc GiD_Event_AfterSetResultComponent { analysis_name step_index result_name component_name } {
}

  • No labels