Merge Components (Tcl command?)

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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.

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "tinh"
    Altair Community Member
    Updated by tinh

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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

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


    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "Chinna N"
    Altair Community Member
    Updated by Chinna N

    Hi @Tinh,

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