question

Rahul R avatar image
0 Likes"
Rahul R asked Felix Möhlmann answered

Push to global list using flexscript

I am unable to push to a global list using flexscript. I am able to do it using process flow and would like to know what I am doing wrong.

1651816992506.png

1651817008579.png

FlexSim 22.1.0
flexscriptlist
1651816992506.png (22.5 KiB)
1651817008579.png (23.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

Depending on the timing, it might be the case that the list is cleared after you push the items, since you do it in the model reset trigger.

The better way to have the objects on the list at the start of the model run would be to add them to the 'Initial Content' of the list.

1651822062332.png


1651822062332.png (24.5 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.

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.