You have to define the element type of Combine14 (ET,) and the real constant (R,) (stiffness). Furthermore, you have to activate them by TYPE, and REAL.
You can compress the node numbers by NUMCMP,NODE and element numbers NUMCMP,ELEM.
Then, select the node of your body which should be connected to a spring. Then, store the number of the selected node (*get,NodeNumber,node,,num,max) and create a new node, which is a little blow the selected one (N,nx(NodeNumber),ny(NodeNumber),nz(NodeNumber)+1 if Z is the desired direction of the spring and 1 is the length) and store the number of the new node (NodeNumber2=_return) as the return value of the N function. Then you can define the spring element between both (E,NodeNumber,NodeNumber2).
If you have multiple nodes to be connected, you can place the generation of nodes and elements in a *DO-*ENDDO loop.
As a last step you can select all nodes which you have just created and constrain them in all degrees of freedom.
You have to define the element type of Combine14 (ET,) and the real constant (R,) (stiffness). Furthermore, you have to activate them by TYPE, and REAL.
You can compress the node numbers by NUMCMP,NODE and element numbers NUMCMP,ELEM.
Then, select the node of your body which should be connected to a spring. Then, store the number of the selected node (*get,NodeNumber,node,,num,max) and create a new node, which is a little blow the selected one (N,nx(NodeNumber),ny(NodeNumber),nz(NodeNumber)+1 if Z is the desired direction of the spring and 1 is the length) and store the number of the new node (NodeNumber2=_return) as the return value of the N function. Then you can define the spring element between both (E,NodeNumber,NodeNumber2).
If you have multiple nodes to be connected, you can place the generation of nodes and elements in a *DO-*ENDDO loop.
As a last step you can select all nodes which you have just created and constrain them in all degrees of freedom.
You Can Use "Contac 52" Element & define the real constant for spring stiffness. This element will take load in compression only. It will not take any load in tension.