Issue with addRow

Issue with addRow

wproctorPG49C
Enthusiast Enthusiast
57 Views
2 Replies
Message 1 of 3

Issue with addRow

wproctorPG49C
Enthusiast
Enthusiast

[ FlexSim 18.0.2 ]

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).

0 Likes
Accepted solutions (1)
58 Views
2 Replies
Replies (2)
Message 2 of 3

sam_stubbsYXX86
Community Manager
Community Manager

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

0 Likes
Message 3 of 3

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

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.