🎉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

Create bar elements from node ID list

User: "HGH"
Altair Community Member
Updated by HGH

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."

image

image

 

This is what my CSV File looks like:

image

Can anyone help with this?

Find more posts tagged with