question

Abhineet Mittal avatar image
0 Likes"
Abhineet Mittal asked Abhineet Mittal commented

Conveyor name/reference from the exit transfer on it using flexscript?

How can I find out the name or reference of the conveyor from the exit transfer on it by using flexscript.

FlexSim 19.0.0
exit transferconveyor exit transfer
· 2
5 |100000

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @Abhineet Mittal,

You could use the following code:

Object exitTransfer = …..;
Object conveyor = ownerobject( exitTransfer.find( ">variables/transferPoint/1" ).value );

3 Likes 3 ·
Abhineet Mittal avatar image Abhineet Mittal commented ·

Thank you @Patrick Zweekhorst. That worked great.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

You get the data in the coupling node in the tree of the exittransfer

print(model().find("ExitTransfer1>variables/transferPoint/1").value);


5 |100000

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

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.