Skip to content

Instantly share code, notes, and snippets.

View GuillermoYanez's full-sized avatar

Luis Guillermo Yáñez GuillermoYanez

  • Universidad de Guanajuato
  • Guanajuato, México
View GitHub Profile
@GuillermoYanez
GuillermoYanez / delete-entities.tcl
Last active March 28, 2018 16:08
TCL proc to delete all existing gemetric entities from GiD (pre and post processor)
# TCL proc to delete all entities from GiD.
# It was taken from GiD Forums.
# Restarts the entities counter to 1.
proc DeleteEntities { } {
GidUtils::DisableGraphics
foreach type { volume surface line point } {
GiD_Geometry delete $type 1:end
}
GidUtils::EnableGraphics