Writing data from array object into a text File

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hii,

 

I am trying to write a .txt file which contains element id's from a specific element group. I referred documentation of javascript but they were mainly focused on web application development and using those methods to write data didn't work in Simlab's JavaScript Interpreter . Is their a way to do that in Simlab itself 

 

Regards

Rishabh  

 

Tagged:

Answers

  • Kamalraj
    Kamalraj
    Altair Employee
    edited November 2017

    Hi,

     

    Currently there is no options to export only element id in .txt file from element group. But we can export the element id's along with the corresponding node id's in .csv format from selected entity.

    Please follow below steps to get it.

    1. Go to File > Export > Other > CSV

    2. Give file name

    3. Pick only element toggle in dialog

    4. Select entity like elements / faces

    5. Click Ok.

     

    Hope this will help you.

    <?xml version="1.0" encoding="UTF-8"?>Element_ID.JPG

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Thanks for posting this @Kamalraj. It has been useful for me when I needed to extract id and coordinates.