question

Sachin N avatar image
0 Likes"
Sachin N asked Sachin N commented

Set the state of a resource assigned to a token

How to set the state of a resource assigned to a token. Model.find(token.resource) did not seem to work

FlexSim 19.2.0
object state
modelfind.png (4.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.

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Sachin N commented

token.resource contains already the pointer to the object. You can use your structure, if token.resource is a string label.

· 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.

Sachin N avatar image Sachin N commented ·

Thank you! I added multiple labels to indicate the shared resources, also figured out the array structure token.resource[x] to set object states accordingly. I wish there was an easy way to track states available in 3D such as idle/waiting/buzy for process flow resources

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.