An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Hello, the coordinates of the nodes to be created in an excel are available. At the same time, I want to create a tcl by entering the weight values that should be added for the tags and 1d mass for each node, can you help with this?
You should be able to do it by editing the attached script and adding a few other commands.
The original script reads a csv file with the node coordinates and create it, using a particular coordinate system (0 is the global system).
You can append these commands to it:
*createnode 111 222 333 0 0 0 ; #create a node with coordinates 111 222 and 333 (x, y, z)
*createmark nodes 1 "displayed" ; #select the node displayed and add it to mark #1>> you can change to its number or -1 to get the latest created *masselement 1 4444 "" 0 ; # add a mass element with mass '4444' to the node selected in mark #1
*tagtextdisplaymode 2 *tagcreate nodes 1 "taglabel_editthis" "tagbody_editthis" 4 ; #create a tag to node ID 1 with a label and body.
You should be able to do it by editing the attached script and adding a few other commands.
The original script reads a csv file with the node coordinates and create it, using a particular coordinate system (0 is the global system).
You can append these commands to it:
*createnode 111 222 333 0 0 0 ; #create a node with coordinates 111 222 and 333 (x, y, z)
*createmark nodes 1 "displayed" ; #select the node displayed and add it to mark #1>> you can change to its number or -1 to get the latest created
*masselement 1 4444 "" 0 ; # add a mass element with mass '4444' to the node selected in mark #1
*tagtextdisplaymode 2
*tagcreate nodes 1 "taglabel_editthis" "tagbody_editthis" 4 ; #create a tag to node ID 1 with a label and body.