question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Jason Lightfoot edited

How to automatically stack in Queue items created with createcopy

When using createcopy to create flowitems in queues, the flowitems do not stack because they didn't enter through the input port. They all occupy the same space.

Is there a code to tell the Queue to "do its stacking job"? Like redraw or something like that?

I tried fixing this by connecting the Queue to another Queue hoping the items would leave on their own and stack in the other Queue but it doesn't work as they stay in the 1st Queue.

I also tried updatelocations("queue") but it doesn't do anything.

FlexSim 20.2.3
queueflexsim 20.2.3item placement
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

I usually would create them in model() and then use moveobject() to put them in the queue.

5 |100000

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