Script for moving independent node of Rigids, when changing position of dependent nodes.
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
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
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
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.