Script modification: Issue with changing start row/column for CSV import to Global Table

Script modification: Issue with changing start row/column for CSV import to Global Table

kentaro_banABGLD
Advocate Advocate
235 Views
1 Reply
Message 1 of 2

Script modification: Issue with changing start row/column for CSV import to Global Table

kentaro_banABGLD
Advocate
Advocate

Hello moehlmann_fe,

I am writing regarding the script you previously provided (which solved my initial issue). I am trying to adjust the import range, but I’ve encountered a problem where the Global Table results do not update.

To clarify, here is what I am trying to do:

  1. Current Status: The script outputs the CSV data to a Global Table named "SequenceImport."

  2. Goal: I changed the parameters in the script from "/test.csv", 1, 1) to "/test.csv", 4, 3). My intention is to import only the values starting from the 4th row and 3rd column of the CSV into the Global Table.

  3. The Issue: Even after modifying the script and resetting the simulation, the Global Table data remains the same as the initial result (from 1, 1). Even if I manually delete the table rows, the output doesn't reflect the new starting position (4, 3).

I have attached the sample data for your reference. Could you please advise on the correct procedure? Please feel free to modify the script if necessary.

Thank you for your help.

Best regards,

0 Likes
Accepted solutions (1)
236 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Mentor
Mentor
Accepted solution

The numerical parameters control whether the first row/column from the csv is used for the headers of the table or not. Anything other than a 0 means 'true'. The command always imports all data from the file. To only use a subset of the data you have to delete the unneeded data from the table after the import is done.

https://docs.flexsim.com/en/26.0/Reference/CodingInFlexSim/CommandReference/Commands.html#importtabl... 

0 Likes