*applyscenario

Applies control and realizes the entity for a given scenario.

Syntax

*applyscenario scenario_name=<value> entity_type=<value> overwrite_attrib=<value> realize=<value>

Type

HyperMesh Tcl Modify Command

Description

Applies control and optionally realizes it. This works on any given supported entity type or on all the supported entities. Once the entity is filtered and the control is applied, same entity is ignored from next definitions.

Inputs

scenario_name=<value>
The name of the scenario to apply.
entity_type=<value>
The entity type the scenario will be applied to. Valid values are connectors, attachments, and all.
overwrite_attrib=<value>
The flag defining the behavior related to any delta values on the engineering entity.
1 - Overwrite attributes
2 - Keep local
3 - Keep existing value
realize=<value>
The option to realize the entities after applying the control.
0 - Do not realize just apply control
1 - Realize after applying control

Examples

To apply control for connectors and realize them by overwriting local values from controls in scenario name Crash:
*applyscenario scenario_name=Crash entity_type=connectors overwrite_attrib=1 realize=1
To apply control for all the supported entities and realize them by keeping existing value of overwriting attribute flag in scenario name NVH:
*applyscenario scenario_name=NVH entity_type=all overwrite_attrib=3 realize=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

2022.2