question

Rocio A avatar image
0 Likes"
Rocio A asked Rocio A commented

Binding a label to a model object

Hello, in my model, I need to create a label called Destino that refers to a 3D element

1725606306005.png

to be able to make an AGV travel to that point in the Flow process.

If I put this: "token.pulled.as(Object).Destino" it takes the name of the object but not its location.

1725605777775.png

but I need to appear this:

1725606417577.png



The route to reach that activity in the processFlow of this process is this:


1725606547732.png


Than you.




FlexSim 24.1.1
process flowlabelsmodel
1725605777775.png (4.9 KiB)
1725606306005.png (15.4 KiB)
1725606417577.png (5.1 KiB)
1725606547732.png (51.0 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
1 Like"
Felix Möhlmann answered Rocio A commented

As long as the object is a direct subnode of the model (not placed inside a plane for example) you can use "Model.find()" to get a reference to the object by name.

Model.find("token.pulled.Destino")
· 5
5 |100000

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

Rocio A avatar image Rocio A commented ·

Hi @Felix Möhlmann, Is there any other way to achieve the same thing without using planes (that the object is on the model) and without having to use Model.find?

Thank you.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Rocio A commented ·

Having the object inside a plane will make Model.find() not work (at least not in this form). It is a detriment not a requirement.

Where does the "Destino" label on the pulled object come from? Maybe you can replace that with a pointer already.

Another option would be to create a lookup map that links the name to a pointer to the object.

0 Likes 0 ·
Rocio A avatar image Rocio A Felix Möhlmann commented ·

In my model the "Destino" label refers to these queues.


1725617568150.png

It is a dynamic process where the queue that will be the destination changes depending on where the item enters, that is why I cannot go directly with the pointer.

My question was if knowing that the object that is going to be the "Destino" (the image tails) is in the model is there another way (FlexScript syntax) to express Model.find(token.pulled.Destino).

Thanks.


0 Likes 0 ·
1725617568150.png (14.6 KiB)
Show more comments