question

William Proctor avatar image
0 Likes"
William Proctor asked Jacob Gillespie answered

Issue with addRow

After the last update I'm having an issue with using table.addRow. I am modifying the size of a global table in an entrytrigger (AccumContent.addRow(1) where AccumContent is a defined table Object). When the program gets to this line of the code it immediately moves back to the first line of the code and refuses to move past the line (repeats the process until it continues with an error message). If I define the table as a bundle, the code works fine (but I don't want to use a bundle).

FlexSim 18.0.2
table commandstable class
· 1
5 |100000

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

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

Would you mind posting the model, or an example model we could look at?

0 Likes 0 ·

1 Answer

Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered

This is a bug. We will get this fixed.

In the meantime you can use this code to get around the problem:

if(AccumContent.numRows == 0)
	AccumContent.addRow(1);
else {
	AccumContent.addRow(2);
	AccumContent.swapRows(1, 2);
}

The same problem exists for addCol() as well.

5 |100000

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