Query resource group based on label array.

Query resource group based on label array.

kari_payton
Not applicable
110 Views
2 Replies
Message 1 of 3

Query resource group based on label array.

kari_payton
Not applicable

[ FlexSim 21.2.4 ]

I have a group of cranes with label of their crane number. The token should be allowed to pull either crane number from the group. How can I get the "acquire" to query a label array. Acquire Resource from Array.fsm

0 Likes
Accepted solutions (1)
111 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

I took a quick look at your model. You are correct that you can query like this:

WHERE value IN some_array

I did notice one thing, though. The original query in the model says this:

WHERE setNum IN puller.stationPointer.craneSetRef

I think it's supposed to reference the craneSetNum label, since that label has array values:

WHERE setNum IN puller.stationPointer.craneSetNum
.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 3

kari_payton
Not applicable
ahhh darn. silly mistake. thank you!
0 Likes