question

Roeland S avatar image
0 Likes"
Roeland S asked Roeland S commented

Couple trailers to existing train

Hello,

I'm modelling a railroad network using AGV's and trailers.
I'm able to couple the first trailer to the AGV and travel towards a second trailer using the correct path offset (see images below).

This is a code snippet of the coupling between the first trailer and the AGV. This code succesfully couples the first trailer to the AGV.

I'm however unable to couple the second trailer to the last trailer of the existing train.

Any suggestions?

Thanks in advance!

Kind regards

FlexSim 21.0.2
flexsim 21.0.2agv loadagv coupling
1612341124962.png (52.9 KiB)
1612341626189.png (9.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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Roeland S commented

From manual the object that you want to couple must be casted as a treenode and not as an object.

· 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.

Roeland S avatar image Roeland S commented ·

Great, that did the job!

Must have overlooked that in the manual.
It is somehow weird that the first trailer coupled fine...

1 Like 1 ·
1612343768313.png (17.6 KiB)