question

j08j avatar image
0 Likes"
j08j asked j08j edited

How to modify the custom code of queue output panel?

I want to modify the custom code of queue output panel "Use Transport".screenshot-2024-04-11-at-35427-pm.png

There is my code:screenshot-2024-04-11-at-35405-pm.png

It can only checked the box of "Use Transport", but it still maintains the default settings "current.centerObjects[1]".

How can I deal with this problem?

Thanks.

FlexSim 24.0.2
flexscriptcodeuse transport
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 j08j edited

Where did you get "UseTransport.TransportResource" as a property name from? The actual property name would be "TransportRef" (as you can see in a property table), though using that also doesn't work, since setting this property toggles the node to not be flexscript anymore.

Use Queue.setVariable("transportdispatcher", ...) instead.

1712834746651.png


1712834746651.png (4.4 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.

j08j avatar image j08j commented ·

Thanks for your reply and help!

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.