hm_assemlist
Returns the hierarchical structure of assemblies, and optionally standalone components, along with properties, materials, groups and beamsection collectors.
Syntax
hm_assemlist separator ?full_listing? ?append_entity_type? ?type_separator?
Type
HyperMesh Tcl Query Command
Description
Returns the hierarchical structure of assemblies, and optionally standalone components, along with properties, materials, groups and beamsection collectors.
In the same way that a directory list is made up of separated sub-directories, the returned list consists of separated entity names.
If the output is not requested to include the entity type, any path that ends in the separator character represents an empty assembly.
Inputs
- separator
- The character used to separate the assemblies in the list.
- full_listing
- 0 - Do not include components not in assemblies, nor any materials, properties, beamsectcols and groups.
- append_entity_type
- 0 - Do not append the entity type to the entity output.
- type_separator
- The character used to separate the entity type names in the list.
Example
hm_assemlist /
/wheel/base/Part1 /wheel/attachments/Part2 /head/Part3 /empty/
hm_assemlist / 1
/wheel/base/Part1 /wheel/attachments/Part2 /head/Part3 /empty/ /Part4
hm_assemlist / 1 1 %
/assemblies%wheel/assemblies%base/components%Part1 /assemblies%wheel/assemblies%attachments/components%Part2 /assemblies%head/components%Part3 /assemblies%empty /components%Part4
Errors
if { [ catch {command_name...} ] } {
# Handle error
}