::hwat::core::InferAssemsCreateEntitySets - Scans a model to find if the assemblies (component entity sets), in the passed Tcl list, exist in the model. For each assembly name, the function checks if the components in the passed component list exist . If any of the components exist, it looks for a component entity set with the same name as the assembly. If found, the set is renamed with a unique name. It then creates a component entity set with same name as the assembly and puts all existing components in that set.
InferAssemblies0 list_of_assemblies
list_of_assemblies |
A Tcl list of assembly names and a component list corresponding to each assembly. |
{} for success, {A_PILLAR} for failure.
::hwat::core::InferAssemblies0 [list A_PILLAR [list 1001 1002] B_PILLAR [2993 2334] Vehicle[list]]