GiD - The personal pre and post processor

Read

GiD_Event_BeforeReadGIDProject: will be called just before read a GiD project. It receives the argument filename, which is the path of the model folder, without the .gid extension.
If it returns -cancel- then the reading is cancelled.

proc GiD_Event_BeforeReadGIDProject { filename } {
...body...
  set value ...
  return $value
}


GiD_Event_AfterReadGIDProject: will be called just after read a GiD project. If errors appear while reading the GiD project, the function is not called. It receives the argument filename, which is the path of the model folder, without the .gid extension.

proc GiD_Event_AfterReadGIDProject { filename } {
}


GiD_Event_AfterReadGIDProjectWithError: will be called after reading a GiD project with errors. It receives the argument procjetfilename, which is the path of the model folder, without the .gid extension and an error_string describing the error found.

proc GiD_Event_AfterReadGIDProjectWithError { project_filename error_string } {
}


GiD_Event_AfterInsertGIDProject: will be called just after insert a GiD project into the current one. It receives the argument filename, which is the path of the model folder, without the .gid extension.

proc GiD_Event_AfterInsertGIDProject { filename } {
}


GiD_Event_AfterSetProjectName:

proc GiD_Event_AfterSetProjectName { name } {
}


GiD_Event_BeforeOpenFile:

proc GiD_Event_BeforeOpenFile { filename format } {
...body...
  set value ...
  return $value
}
  • filename: the full name of the file to be read;
  • format: ACIS_FORMAT, CGNS_FORMAT, DXF_FORMAT, GID_BATCH_FORMAT, GID_GEOMETRY_FORMAT, GID_MESH_FORMAT, IGES_FORMAT, NASTRAN_FORMAT, PARASOLID_FORMAT, RHINO_FORMAT, SHAPEFILE_FORMAT, STL_FORMAT, VDA_FORMAT, VRML_FORMAT or 3DSTUDIO_FORMAT.

If it returns -cancel- then the reading is cancelled.

GiD_Event_AfterOpenFile: will be called after a geometry or mesh file is read inside GiD. It receives as arguments:

  • filename: the full name of the file that has been read;
  • format: ACIS_FORMAT, CGNS_FORMAT, DXF_FORMAT, GID_BATCH_FORMAT, GID_GEOMETRY_FORMAT, GID_MESH_FORMAT, IGES_FORMAT, NASTRAN_FORMAT, PARASOLID_FORMAT, RHINO_FORMAT, SHAPEFILE_FORMAT, STL_FORMAT, VDA_FORMAT, VRML_FORMAT or 3DSTUDIO_FORMAT.
  • error: boolean 0 or 1 to indicate an error when reading.
proc GiD_Event_AfterOpenFile { filename format error } {
}



COPYRIGHT © 2022 · GID · CIMNE