question

Cameron Pluim avatar image
1 Like"
Cameron Pluim asked Matthew Gillespie answered

Should partition IDs be able to be larger than an int?

In the manual it states, "The partition ID can be a number, a string, or a reference to an object or node in the tree", yet when I try to create a partition with an ID greater than an int, it sets the partition to be -2147483648 (smallest number for an int). This is frustrating when you are trying to create a list of parts on a shipment, and the shipment is 7000093568.

FlexSim 16.2.1
listspartitions
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

As long as you use a double for the partitionID (i.e. 7000093568.0) it can make the partition and it won't be -2147483648. However, it does look like the table you see when you View Entries can only display numbers in the int range.

As you can see there are two different partitions (7000093567.0 and 7000093568.0), but the table is displaying them both as -2147483648.

So everything should still work for you, but the table won't be as helpful until we fix that issue.


partitions.png (16.3 KiB)
5 |100000

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