How to read .csv file in hypermesh and import meshed component automatically?
sanket_patil
Altair Community Member
I want to read my database excel sheet in hypermesh to import part directly. How can we do that??
0
Answers
-
Can you open/read a csv file?
0 -
yes
0 -
Can you import parts?
0 -
no..can you tell tcl script to read .csv file in hypermesh??
0 -
set fp [open $filepath r]
set fileData [read $fp]
close $fp
set fileLines [split $fileData '\n']foreach line $fileLines {
set lineData [split $line ,]
puts 'Parts of the line: [lindex $lineData 0] and [lindex $lineData 1]'
}0