question

Cameron Pluim avatar image
0 Likes"
Cameron Pluim asked Sam Stubbs answered

Is there a way to get the partition ID?

I'm trying to get the number of partitions, and the partition ID for each partition within a list. I can get the number of partitions using

content(getvarnode(node("Tools/GlobalLists/ItemList1", model()), "partitions"));

but I can't find how to get the partition ID for each partition.

FlexSim 16.1.2
partitionslist sorting
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

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

If you parse through the "partitions" of the list you could return the ID number of the partition using the command getsdtvalue(). Something like getsdtvalue(partition,"id"), where partition is your iteration through the children of the "partitions" node in the tree.

However, what is that you're trying to get the ID number for? Because there might be a different way to approach it.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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