TCL command to select nodes by geometry

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi, all,

Is there any tcl command to select nodes by geometry? For example, I try select all nodes associated with a line. I try to operate it in hypermesh and then check the command.cmf file. But what I can find is the following command:

*createmark(nodes,1) 38-70 5954-5984

which directly operate by node number. Since in my mode, the mesh changes, so the number number and amount of nodes change. So above command will not give desired result.

Does any one know the tcl command to select nodes by geometry? It seems it can be done easily in hypermesh GUI,so probably there is a corresponding command or function in TCL.

Thanks!

Richard

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2011

    try ..

    hm_createmark nodes 1 'by lines' $lineId

    set ndlist [hm_getmark nodes 1]

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2011

    How to manually assign a ID to a line when it is created?

    I means not to use automatic ID by hypermesh but give a ID in TCL function.

    Thanks!

    try ..

    hm_createmark nodes 1 'by lines' $lineId

    set ndlist [hm_getmark nodes 1]