question

Kim Jh avatar image
1 Like"
Kim Jh asked Brandon Peterson answered

How to reference all Global Tables in model?

Choose One
global table
5 |100000

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

1 Answer

Brandon Peterson avatar image
3 Likes"
Brandon Peterson answered

Kim Jh,

The global tables in a model are stored in the "GlobalTables" node inside of the Tools node of the model. The following code will print the names of all of the global tables to the output console:

treenode GlobalTables = node("/Tools/GlobalTables", model());
for(int i1 = 1; i1 <= content(GlobalTables); i1++){
	treenode temptable = rank(GlobalTables, i1);
	pr(); pt(getname(temptable));
}

Good Luck,

Brandon

5 |100000

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