Get all components from .csv and import only one out of them

sanket_patil
sanket_patil Altair Community Member
edited October 2020 in Community Q&A

Hi All,

 

I have one .csv file which contains part numbers in one column and their FE model (.bdf) file paths in another column. Now i want to write a tcl script that will read all part same numbers and their corresponding paths  and it will give a pop-up window that 'which part you want to import?'.

 

How can i do this? Please help regarding this.

 

Regards,

Sanket

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited February 2019

    These are some tasks in script:

    1.read the csv file

    2.construct a list of items {partNO file_path}

    3.using lsearch to filter same partNO items, extract their paths and show on message.

    Can you do it?

  • sanket_patil
    sanket_patil Altair Community Member
    edited February 2019

    @tinh can you give me example of lsearch command for the same?

  • tinh
    tinh Altair Community Member
    edited February 2019

    Yes

    Type 'lsearch' in google box

    View 1st page

    Are those examples ok?

  • sanket_patil
    sanket_patil Altair Community Member
    edited February 2019

    Yes..

    Thanks :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />