question

j08j avatar image
0 Likes"
j08j asked j08j commented

How can I edit FlowItem quantity in flexscript?

How can I change this step into code?screenshot-2024-03-13-at-11220-am.png

This is my code:screenshot-2024-03-13-at-11355-am.png

it can only run one product when I run model.

FlexSim 24.0.2
codeproductsflexcript
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 commented

The arrival table is stored as a node table in the source's variables attribute node.

capture1.png

If you cast the node as table you can use the normal table syntax to change the entries.

Object source = ...;    // Insert a way to reference the source here
Table sourceArrivals = source.find(">variables/schedule"); sourceArrivals[1][3] = 15;

capture1.png (7.7 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!
0 Likes 0 ·