question

Devdatta D avatar image
0 Likes"
Devdatta D asked Andrew O commented

Connect queues to conveyor using A connection

I have queues placed next to each other and when I use contextdragconnection to setup connection between queue and conveyor all the queues get connected to one Exit Transfer.

1675797422535.png

How do i connect them to different exit transfers using code? I can do that using 3d view but not in code.

FlexSim 22.2.4
conveyorscontextdragconnectiona connect
1675797422535.png (187.8 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.

Andrew O avatar image Andrew O commented ·

Hi @Devdatta D, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

I can't reproduce what you're describing with the queues places along the conveyor. In the attached example I connect them individually which has the same effect as connecting once with them all selected. The script is simply this:

Object conveyor=Model.find("StraightConveyor1");
Array queues=Group("Queues").toFlatArray();
while (queues.length)
    contextdragconnection(conveyor,queues.shift(),"A");

testConvConnectQueues.fsm


· 2
5 |100000

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

Devdatta D avatar image Devdatta D commented ·

I think my concern was, all the queues were getting connected to one exit transfer. I wanted to create different exit transfer for each queue. I am already connecting them by looping through the group, one at a time.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Devdatta D commented ·
In my example they all connect to separate transfers - it's largely based on the position of the queue relative to the conveyor.
0 Likes 0 ·