*modelcheck_applyautocorrection
Runs auto correction on the model, if checks are run.
Syntax
*modelcheck_applyautocorrection ?check_display_name? ?entity_type? ?error_type? ?mark_id?
Type
HyperMesh Tcl Modify Command
Description
Runs auto correction on the model, if checks are run.
If executed with no arguments, then auto correction is applied on all checks for all entity types. The order in which auto correction is applied depends on the order in which checks are defined in the config file.
Inputs
- check_display_name
- The GUI display name of the check. This is case sensitive.
- entity_type
- The type of entity to be validated.
- error_type
- The type of errors to check, ERROR, WARNING, INFO or ALL.
- mark_id
- The ID of the mark of entities for which model checker is to be run. Valid values are 1 and 2.
Examples
Run auto correction on the check named
"checkname":
*modelcheck_applyautocorrection checkname
Run auto correction on properties 1-10 :
*createmark props 1 1-10
*modelcheck_applyautocorrection "" props ERROR 1
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
2019