...
GiD_Event_InitProblemtype
GiD_Event_BeforeInitProblemtype
GiD_Event_EndProblemtype
GiD_Event_AfterChangeProblemtype
GiD_Event_AfterSetProblemtypeName
- Read / Write
GiD_Event_LoadModelSPD
GiD_Event_LoadProblemtypeSPD
GiD_Event_SaveModelSPD
- Transform
GiD_Event_BeforeTransformProblemType
GiD_Event_AfterTransformProblemType
- Materials
GiD_Event_AfterCreateMaterial
GiD_Event_AfterRenameMaterial
GiD_Event_BeforeDeleteMaterial
GiD_Event_AfterChangeMaterial
GiD_Event_AfterAssignMaterial
- Conditions
GiD_Event_AfterCreateCondition
GiD_Event_BeforeDeleteCondition
GiD_Event_AfterChangeCondition
- Intervals
GiD_Event_AfterCreateInterval
GiD_Event_BeforeDeleteInterval
GiD_Event_AfterDeleteInterval:
GiD_Event_AfterSetIntervalToUse
- Units
GiD_Event_AfterChangeModelUnitSystem
- Calculation file
GiD_Event_BeforeWriteCalculationFile
GiD_Event_AfterWriteCalculationFile
GiD_Event_SelectOutputFilenames
- Run
GiD_Event_SelectGIDBatFile
GiD_Event_BeforeRunCalculation
GiD_Event_AfterRunCalculation
Event procedures>problemtype>Start / End
GiD_Event_InitProblemtype / GiD_Event_BeforeInitProblemtype: will be called when the problem type is selected. It receives the dir argument, which is the absolute path to the problem_type_name.gid directory, which can be useful inside the routine to locate some alternative files.
proc GiD_Event_InitProblemtype { dir } {
}
proc GiD_Event_BeforeInitProblemtype { dir } {
}
Note:InitGIDProject is a deprecated alias of GiD_Event_InitProblemtype
GiD_Event_EndProblemtype: will be called when this project is about to be closed. It has no arguments.
proc GiD_Event_EndProblemtype {} {
}
Note: EndGIDProject is a deprecated alias of GiD_Event_EndProblemtype
GiD_Event_AfterChangeProblemtype
proc GiD_Event_AfterChangeProblemtype { oldproblemtype newproblemtype } {
}
GiD_Event_AfterSetProblemtypeName
proc GiD_Event_AfterSetProblemtypeName { name } {
}
Event procedures>problemtype>Read / Write
GiD_Event_LoadModelSPD: will be called when a GiD project is loaded. It receives the argument filespd, which is the path of the file which is being opened, but with the extension .spd (specific problemtype data). This path is tipically the file of the model where the problemtype store its own data.
proc GiD_Event_LoadModelSPD { filespd } {
}
Note: GiD_Event_AfterLoadGIDProject Will be called when a GiD project is loaded, but not when a problem type is loaded, then could be used instead of GiD_Event_LoadModelSPD as an oportunity to load the problemtype data of the model.
GiD_Event_LoadProblemtypeSPD: will be called when a problem type is loaded. It receives the argument filespd, which is the path of the file which is being opened, but with the extension .spd (specific problemtype data).
This path is tipically the file of the problemtype where the problemtype define its own data.
proc GiD_Event_LoadProblemtypeSPD { filespd } {
}
Note:LoadGIDProject is a deprecated confusing event, that is called in both cases: GiD_Event_LoadModelSPD and GiD_Event_LoadProblemtypeSPD
GiD_Event_SaveModelSPD: will be called when the currently open file is saved to disk. It receives the argument filespd, which is the path of the file being saved, but with the extension .spd (specific problemtype data). This path can be useful if you want to write specific information about the problem type in a new file.
proc GiD_Event_SaveModelSPD { filespd } {
}
Note:SaveGIDProject is a deprecated event alias of GiD_Event_SaveModelSPD
Event procedures>problemtype>Transform
GiD_Event_BeforeTransformProblemType: will be called just before transforming a model from a problem type to a new problem type version. If it returns cancel as a value then the transformation will not be invoked.
...