question

Andrew McNitt avatar image
0 Likes"
Andrew McNitt asked Joerg Vogel edited

Programmatically changing time table values

I am attempting to use custom code user commands to generate a time table based on values from a global table that gets loaded in from a database connection. The global table contains values for each scheduled down instance (start time, state, duration). I want to use those referenced values to generate a time table in the table selection option. Is it possible to change the mode type and create new rows and values programmatically in user commands?


1701976218953.png

FlexSim 22.2.0
timetable
1701976218953.png (21.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

This table is inside a node in variables tree of TimeTables tool.

You can work with this table structured node as you do it with any other table.

You declare this node holding a table. Then you can add rows by method addRow(n). Where n is the number of added rows.

timetable-node.jpg


timetable-node.jpg (39.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.