How to access GlobalTables folder in Model tree?

How to access GlobalTables folder in Model tree?

whisperlite88
Not applicable
419 Views
2 Replies
Message 1 of 3

How to access GlobalTables folder in Model tree?

whisperlite88
Not applicable

[ FlexSim 19.2.3 ]

Hi,

I'm trying to access the GlobalTables folder in the model tree to search through each node to inspect the table names.

I've tried using:

for (int num = 1; num <= treeLength; num++) {

currNode = model().subnodes[num];

But that doesn't go into Model>tools>GlobalTables

Does anyone know how I can direct the search to the folder that I want within the model tree?

Thank you

Accepted solutions (1)
420 Views
2 Replies
Replies (2)
Message 2 of 3

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

Here is an example:

treenode globalTables = Model.find("Tools/GlobalTables");
for (int i = 1; i <= globalTables.subnodes.length; i++) {
	treenode globalTable = globalTables.subnodes;
	Table table = Table(globalTable.name);
	// Do something
}
0 Likes
Message 3 of 3

whisperlite88
Not applicable

That's amazing, thank you for the quick response!

0 Likes