🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

selecting nodes depending on their coordinates

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

Hello,

I'm a new user of tcl languaje and HyperMesh macros, and I have a problem selecting nodes in a tcl script.

I want to create a list with nodes depending on their coordinates. For example, I want to create a list with nodes that fulfills these conditions:

0< x < 5 && 3 < y < 6 && z == 0

(the nodes that the coordinate x have between 0 and 5, and the coordinate y between 3 and 6 and the coordinate z = 0).

Is it necessary to obtain a matrix with the coordinates x, y and z of all the nodes? How can I do that in a simple way? Is there any specific command for that?

Thanks in advance

Looking forward to for your help

Find more posts tagged with