Programmatically changing time table values

Programmatically changing time table values

Amcnitt
Not applicable
620 Views
1 Reply
Message 1 of 2

Programmatically changing time table values

Amcnitt
Not applicable

[ FlexSim 22.2.0 ]

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

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

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

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

0 Likes