Import routing rules?

Hi,

I’m building a model with several large shuttle converyors where I need to steer up to 300 products to different ports. Is there any way to define the routing rules (If ProdID=‘111’ ==> Port1, If ProdID=‘222’ ==> Port2) etc? Or at least to create the required amounts of connections/rules? At the moment, it’s taking a lot of time for little reward.

Hi, you can for example look in the help file -> Reference guide -> Python API -> vcRoutingRule.

Look at the OnRoute event together with the setTarget function.
Then you can override the routing rule based on your decision.

e.g.
if part.ProdID == “111”:
setTarget(1)