question

Troy avatar image
0 Likes"
Troy asked Troy commented

Acquire resouce through label

I have a group of agv,
1686629181298.png

and agv with labels.

1686629313542.png

Now I want to acquire the agv from resource by query like:

Where agv.labels["currentContent"].value < agv.labels["maxContent"].value

but it got syntax error. Is there a way to acquire resource by label?
Thanks for help.

Acquire Resource.fsm

FlexSim 22.2.0
acquire resource
1686629181298.png (57.0 KiB)
1686629313542.png (55.8 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.

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Troy commented

Labels of the queried objects are generally accessible directly by name in Acquire and Pull from List activities.

1686636990526.png

To be sure, you can always add them as a field to the internal list behind the Resource activity (only when the resource represents actual objects in the model).

1686637073804.png


1686636990526.png (13.1 KiB)
1686637073804.png (16.8 KiB)
· 1
5 |100000

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

Troy avatar image Troy commented ·

Thank you so much @Felix Möhlmann. Learned something new!

0 Likes 0 ·

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.