Merge Components (Tcl command?)

Altair Forum User
Altair Forum User
Altair Employee
edited July 2022 in Community Q&A

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.

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited August 2013

    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 ...

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2013

    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 ...


  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

    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 

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hi

    There is no such available function and you can write a tcl proc to do it as above guide or look for the same on script exchange

  • Chinna N
    Chinna N Altair Community Member
    edited July 2022

    Hi @Tinh,

    Is any command to move a Cad solid to nearest FE Model collector? or have any script pls share