Skip to content

Instantly share code, notes, and snippets.

@GuillermoYanez
Last active March 28, 2018 16:08
Show Gist options
  • Save GuillermoYanez/1b4f6300042bcd2b9de14c7a9308cd67 to your computer and use it in GitHub Desktop.
Save GuillermoYanez/1b4f6300042bcd2b9de14c7a9308cd67 to your computer and use it in GitHub Desktop.
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment