🎉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

Importing CSV file to TABLED1 curve

User: "Akhil_22546"
Altair Community Member
Updated by Akhil_22546

Hello Community, 

I would like to import multiple csv files into TABLED1 curves for each file but I am unable to find the command to mention in the tcl file as i need to automate it. 

Thanks for your help in advance.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Rishabh"
    Altair Employee
    Updated by Rishabh

    Hello Akhil 

    I would recommend the following steps : 

    1. Create a curve using Card Image : TABLED1 

    2. Add some dummy  X, Y points in curve editor. 

    This should give you the commands for the above steps in the command.tcl . You can view the commands from Edit -> Command Files. 

    Commands to read points are mentioned below (https://help.altair.com/hwdesktop/hwd/topics/reference/hm/_curveaddpoint.htm)

    *curveaddpoint 20024 0 0 0 

    *curveaddpoint 20024 0 0 0

    The next step will be write a .tcl code to read a .csv file and save the X and Y co-ordinates in a list. Then you can iterate over the X,Y co-ordinates list and use *curveaddpoint to add individual points to the curve. 

    Another loop would be for the  number of curves you wish to create which will depend on the number of .csv files