Create bar elements from node ID list
I want to automatically create bar elements from a list of node IDs.
set bar_list [open "Bar_List.csv"]
set node_ids [read -nonewline $bar_list]
close $bar_list
foreach line [split $node_ids "\n"] {
lassign [split $line {;}] name NodeA NodeB VectorID
*barelement $NodeA $NodeB $VectorID
}
This is my code for this part but when I run the script it says "Node A and node B are the same."
This is what my CSV File looks like:
Can anyone help with this?