🎉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

Script for moving independent node of Rigids, when changing position of dependent nodes.

User: "Michal Kolatowicz_21221"
Altair Community Member
Updated by Michal Kolatowicz_21221

During my work, I often change the position of the rigids, but moving an independent node usually requires creating a free node in the newly created hole. Could someone help me write a script that would transfer an independent node based on dependent nodes?

I found out commend: 

*rigidlinkupdatecalcinodebycollector

but it change node ID of independent node :(.

Find more posts tagged with

Sort by:
1 - 8 of 81
    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    Do you want to recalculate the independent node? If so, unless you want to code the equations yourself, I would just query the id of the independent node, use the api you found, and then renumber the node.

    User: "Michal Kolatowicz_21221"
    Altair Community Member
    OP
    Updated by Michal Kolatowicz_21221

    Yes. I want to recalculate the independent node. How to query for nodes ids adjacent of rigid element? How to query for independent node of rigid element?

    User: "Fred_Juras"
    Altair Employee
    Updated by Fred_Juras

    You can also use the following API to recalculate independent node position automatically:

    *createmark elements 1 1
    *recalculaterigidmainnode 1

    User: "Michal Kolatowicz_21221"
    Altair Community Member
    OP
    Updated by Michal Kolatowicz_21221

    Where you found this command "*recalculaterigidmainnode". Im looking for a command: on this page :

    Tcl Modify Commands (altair.com)

    because i cant found this command in this page :(

    User: "Michal Kolatowicz_21221"
    Altair Community Member
    OP
    Updated by Michal Kolatowicz_21221

    Mine interpreter in HyperMesh 2023 doesnt recognize this commend :"*recalculaterigidmainnode 1" It is correct or how to use it?

     

    User: "Fred_Juras"
    Altair Employee
    Updated by Fred_Juras

    Indeed, this *recalculaterigidmainnode API is not yet documented and available only since v2023.1.
    So with v2023, you should use the *rigidlinkupdatecalcinodebycollector command and then renumber the node.

    User: "Michal Kolatowicz_21221"
    Altair Community Member
    OP
    Updated by Michal Kolatowicz_21221

    I cant find command which get the nodes connected to rigid body. Anyone can help me with that?

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    I cant find command which get the nodes connected to rigid body. Anyone can help me with that?

    This will get you all the nodes from the rigid:

    hm_getvalue elem id=$id dataname=nodes

    This will get you the dependent nodes:

    hm_getvalue elem id=$id dataname=dependentnodes

    And this will get you the independentnode:

    hm_getvalue elem id=$id dataname=independentnode