Merge Components (Tcl command?)


Hi all,
I am searching for an easy way to merge multiple component into a single component. I have already done some preliminary search but found nothing about merging components.
For example:
I have a .hm file with 3 components, each containing different type of entities (e.g. nodes, elements, solids, surfaces, points etc.), all I want is to have a tcl command that moves all entities in these existing components into a new component, and delete all previous components. I went through the documentation of scripts (Tcl modify commands) and found nothing directly helpful for this purpose.
Experienced/knowledgeable users of HyperMesh, please help.
Best regards,
Mubeen.


Hi tinh,
Tons of thanks for your valuable comment! very helpful indeed.
Hi,
This is a way to find objective tcl commands
delete your command.cmf file
create a new component
F11 move elems, surfs, points to the created component
F2 delete empty components
Now open your command.cmf, you will see the tcl commands for your task
*collectorcreateonly ...
*createmark ...
*movemark ...
*deletemark ...


Hi @Tinh,
i was wondering, is there a function to merge two components, given the component names, say tangent to each other.
If that were possible, what would be the keywords used?
please let me know,
Thanks and regards,
Arjun
Hi,
This is a way to find objective tcl commands
delete your command.cmf file
create a new component
F11 move elems, surfs, points to the created component
F2 delete empty components
Now open your command.cmf, you will see the tcl commands for your task
*collectorcreateonly ...
*createmark ...
*movemark ...
*deletemark ...