Quickly add rows on arrival table, Flexsim 2017.

Quickly add rows on arrival table, Flexsim 2017.

rob_davies1
Not applicable
23 Views
3 Replies
Message 1 of 4

Quickly add rows on arrival table, Flexsim 2017.

rob_davies1
Not applicable

[ FlexSim 17.0.0 ]

On Flexsim 2017, I'd like to update the arrival table to 892 rows, but I don't want to click the [ + ] button 892 time to create enough rows to copy the data in.

4483-wle2s.png

Any alternate ways to import arrival data ? Flexsim Healthcare allows you to type number of rows, and then cut and paste, but I don't see that field in Flexsim 7.

4482-dcltp.png

Accepted solutions (1)
24 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor

Manual > Flexsim Coding > Flexsim Class Reference > Table >addRow

or ...> Table > setSize

0 Likes
Message 3 of 4

adrian_haws
Not applicable
Accepted solution

There isn't a place where you can input a number to increase the number of rows in a Process Flow Schedule Source activity. The easiest option would be to import your table from Excel.

4489-mtei.png

Then in the Excel Import/Export in the Toolbox you can import from a designated Excel document.

If you still want to define the number of rows in the arrival table you can execute the same code that the activity uses. First, designate the arrivals node in the model tree:

4490-designate-node.png

Then run this code in the Script window, changing the value for newArrivals as desired:

treenode arrivals = so();
int newArrivals = 20;
for (int i = 1; i <= newArrivals; i++) {
	treenode arrival = createcopy(last(arrivals), arrivals, 1);
	int newTime = get(rank(prev(arrival), 1)) - get(rank(prev(prev(arrival)), 1)) + get(rank(prev(arrival), 1));
	set(first(arrival), maxof(0, newTime));
}

I will suggest this to the development team as an added feature.

Message 4 of 4

mischa_spelt
Advisor
Advisor

If you went so far as to find the arrivals node in the tree, you might as well just right-click it and Explore As Table, which then allows you to set the number of rows directly in the Quick Properties panel. It avoids the scripting and allows you to copy/paste rows.

4510-exploreastable.png