replace nodes from one nodelist to another nodelist accoding to nearest distance between two nodes

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

Hi,

I have a nodelist of some 12 nodes.

I have another nodelist of 12 nodes.

I want to replace nodes from one list to other list according to nearest node in other nodelist.

If anyone have idea, plz reply.

Regards,

Prashant

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2010

    I don't have anything that does that exactly, but it can be written pretty easily. May I ask what your end goal is? Perhaps there is something that already does what you need? Are you trying to perform a 'ruled' function in a macro?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2010

    i wanna connect component like disc with say 12 nodes on outer edge to a whole with 12 nodes. in this case i wanna use *replacenodes command but first i need to decide nearest node should be replaced.

    That's why i wanna need some info regarding whtether we can know nearest node among a given nodelist for specific nodes from other nodelist

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2010

    Sounds like you want to fix a 'crack' in the model? If so, you can create free edges of both parts in the edges panel, then perform an equivalence on ONLY the ^edges component. This should stitch them at the nearest. If you need one-to-one mapping of different numbers of nodes, then some assumptions will have to be made for the macro you are considering. For instance: What will you do for different length lists?

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.