Part Path Transfer & Interfaces

Hey there,

I’m currently facing issues with parts sometimes not transfering between component interfaces & feel like this being rather random and not reproducible for me.
(E.g. part transfer broke between moving one path sensor frame back and forth, without recovering transfer functionality after moving the path sensor frame back.)

Is it possible to make interface connections via python without using PNP in Home-Mode? Can we verify the connection is properly established?
And can we check if there is actually a part already on the path, or if it’s still empty?

Thanks!

For example if you have a path. You can connect it to another with python

Path1=comp.findBehaviour("Path1")
Path2=app.findComponent("Conveyor2").findBehaviour("Path2")
#Connectors
Path1_input=Path1.getConnector(0)
Path1_output=Path1.getConnector(1)
Path2_input=Path2.getConnector(0)
Path2_output=Path2.getConnector(1)

#Connect
Path1_output.connect(Path2_input)
#Disconnect
Path1_output.connect(None)

#Check components on path
print(Path1.ComponentCount)
#or
print(Path1.Components)

Hope this helps

1 Like

That’s been working a charm, thank you so much!