question

Yue Y avatar image
0 Likes"
Yue Y asked Joshua S answered

Get all labels

How to get all labels of an object? I am considering printing out all labels, is there a way to loop through all the labels and print them?

FlexSim 19.1.1
labels
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

Joshua S avatar image
4 Likes"
Joshua S answered

You can run this script

Object obj = YourObject;
for (int i = 1; i <= labels(obj).subnodes.length; i++)
	print(labels(obj).subnodes[i].name,": ",labels(obj).subnodes[i].value);
5 |100000

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