How to read .csv file in hypermesh and import meshed component automatically?

User: "sanket_patil"
Altair Community Member
Updated by sanket_patil

I want to read my database excel sheet in hypermesh to import part directly. How can we do that?? 

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Can you open/read a csv file?

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    yes

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Can you import parts?

    User: "sanket_patil"
    Altair Community Member
    OP
    Updated by sanket_patil

    no..can you tell tcl script to read .csv file in hypermesh?? 

    User: "Nagarjuna Pagadala"
    Altair Employee
    Updated by Nagarjuna Pagadala

        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]'
        }