# ::hwat::utils::GetCompsFromAssem

Gets the components in a given assembly.

## Syntax

::hwat::utils::GetCompsFromAssem str_assemName {b_recurse}

## Arguments

str_assemName
Name of the assembly.
b_recurse
Boolean flag to indicate if the sub-assemblies are to be included in the search.
False
Only immediate comps are included.
Default.
True
All comps of this and child assems are included.
Optional.

## Returns

Success
List of components contained in the assembly if the given assembly is found in the current HyperMesh session.
Failure
{}

## Example

::hwat::utils::GetCompsFromAssem Assemb1 FALSE