*modelcleanup
Deletes the empty, unused, or undefined entities in the session based on the selected options.
Syntax
*modelcleanup empty=<value> unused=<value> undefined=<value>
Type
HyperMesh Tcl Modify Command
Description
Cleans the model by deleting all the empty, unused, or undefined entities in the session repeatedly until all such entities are deleted.
Inputs
- empty=<value>
- 1 – Delete empty entities.
- unused=<value>
- 1 – Delete unused entities.
- undefined=<value>
- 1 – Delete undefined entities.
Examples
To delete all empty and unused
entities:
*modelcleanup empty=1 unused=1 undefined=0
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2021.2