::hwat::utils::FindRootAssembly

Gets the root assembly for a given component or assembly.

Syntax

::hwat::utils::FindRootAssembly str_searchList

Arguments

str_searchList
A Tcl list of lists of names of assemblies and/or components for which the root assembly has to be found.
For example: {comps {Part26 Comp1} assems {Assem1Frame Body}}

Returns

Success
A Tcl list of lists of IDs of the corresponding root assembly for the given assemblies or comps.
For example: {comps {1 2} assems {1 0 2}}.
Failure
{}

Example

::hwat::utils::FindRootAssembly {comps {Comp1 Part1} assems {FLOOR assem1 Frame}}

Comments

If an assembly or component has no root assembly, a "0" is returned corresponding to that component or assembly.