🎉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

Nearest nodes

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

how to find nearest node in hypermesh. A command or any macro that should search a tolerance of distance like within radius of 30  and then find nodes within that perimeter . lets say, should find nodes adjacent to it.

Find more posts tagged with

Sort by:
1 - 8 of 81
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    You can select nodes within a sphere

    *createmark nodes 1 'by sphere' 

    -> i dont remember args so please look up reference help. ;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />

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

    Hi Sonu,

    The API is  *createmark nodes 1 'by sphere' x y z r inside 1 1 .1

     

    <?xml version="1.0" encoding="UTF-8"?>by node.PNG

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

    hi johnson and tinh

    thank you for the answer. was really grateful.

    However, I need a little more favour pls.

    As you suggested i was able to create a sphere with a central node. however, i want to add those nodes in the form of temporary nodes because as soon as i turn of elements, the nodes dissapear too.

    once i have added the nodes, i want to automate it for n number of nodes. how can i run the process in a loop through a tcl.

     

     

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

    Hi Sonu,

    Once the nodes are displayed using *createmark nodes 1 'by sphere' x y z r inside 1 1 .1 option, you can go to Shift + F2 option and directly add those nodes, so that those nodes will be displayed.

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

    hi johnson, but the problem is, as soon as i turn off the elements, the nodes dissaper too with elements.

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    I am not sure what you want to do with the nodes

    to mark them as temporary

    *createmark nodes 1 'by sphere' x y z r inside 1 1 .1

    set NodeList [hm_getmark nodes 1]

    *nodemarkaddtempmark 1

    foreach NodeId $NodeList {

         # do you job with each node here

    }

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

    Is there any code to select the nodes where two components are intersecting? I tried using hm_getnodessharedbyothercomps but the nodes are not selecting.

     

    Thank you in advance for any reply

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Maybe you have to use command *penetrationcheck