question

Jonathan_Huang avatar image
0 Likes"
Jonathan_Huang asked Jonathan_Huang commented

Customize flow item positions in queue

Hi everyone

Please instruct me how to customize Flow Items position in Queue like the following image (arrange flow items in the center of each circle).

1708054003274.png

Simulation Rhino line 20240216 Queue.fsm

Thanks and best regards

FlexSim 23.1.2
queueflowitem
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jonathan_Huang commented

You can set a stacking method in a queue. If you want to adjust a location for each object by on Entry event, you set for example do nothing in in stacking option. Now you can set locations as you like.
An automatic analysis does not exist of shape edges, because you can still manipulate size of an object and shape later.

· 3
5 |100000

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

Jonathan_Huang avatar image Jonathan_Huang commented ·
Hi Mr Vogel


By setting do nothing in stacking option. I can set the location for first flow item which entered queue. What is about setting location for second ~ 9th flow item? Flow items will not be removed until the queue got full


Thanks and best regards

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jonathan_Huang commented ·

@Jonathan_Huang,

here an example. There are other structures to achieve a similar outcome.

On Entry trigger

int contentInQueue = current.subnodes.length;
Array posPerItem = [[0,0,0],[1,0,0],[2,0,0],[0,1,0],[1,1,0],[2,1,0],[0,2,0],[1,2,0],[2,2,0]]; // [[x,y,z],..] item.location = posPerItem[contentInQueue].as(Vec3);

location_by_lookup_array.fsm

0 Likes 0 ·
Jonathan_Huang avatar image Jonathan_Huang Joerg Vogel commented ·
Hi Mr Vogel


Thank you so much!

0 Likes 0 ·