Add exit transfers to conveyor using flexscript

Add exit transfers to conveyor using flexscript

devdatta_d
Not applicable
32 Views
3 Replies
Message 1 of 4

Add exit transfers to conveyor using flexscript

devdatta_d
Not applicable

[ FlexSim 22.1.1 ]

When I add A connect to the conveyor it uses existing ExitTransfer, I would like it to create a new exit transfer. I am using contextdragconnection command.

0 Likes
Accepted solutions (1)
33 Views
3 Replies
Replies (3)
Message 2 of 4

kavika_faleumu
Autodesk
Autodesk

Hey @Devdatta D, when you create an A-connection from a conveyor to another fixed resource, it automatically creates an ExitTransfer relative to the location of the fixed resource it is going to. Here's a post that explains it a bit more.

If you want to move ExitTransfers to different locations, then you can try following this post's instructions. Or if you want to get a reference to one, try this post.

As for creating new ExitTransfers, you'll need to ensure that whatever the transfer is connecting to is far enough away from the existing "default" transfer that a new one will need to be made.

For example, this may be too close:

1659650713823.png

while this is fine:

1659650742106.png

Notice the differences in Sink2's position. The same code was used, but one made an ExitTransfer2 while the other just used the existing one.

Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

I uses the relative positions of the two objects being connected to determine if an existing exit transfer should be used or a new one should be created.

In the case of a conveyor connecting to a fixed resource, if the side projection of a transfer overlaps the fixed resources bounding box, that transfer can be re-used. If the bounding box of the fixed resource does not overlap a transfer than the centre of the fixed resource is projected on to the conveyor length and a new transfer created at that point.

In the case of connecting two conveyors the start of the conveyor is used in the same manner.


This means that you can either move the transfer along the conveyor or move the second object such that either approach will create a second transfer.



Message 4 of 4

andrew_o2
Not applicable

Hi @Devdatta D, was one of Jason Lightfoot's or Kavika F's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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