Split Duct with Different Routing Preferences on Union

Hi, I want to split duct network in certain distance (Max 1400 & Min 300) using Dynamo. However, my script is working only for single duct. Is it possible to:
a) Split Overall duct networks with their specified Union Type in routing preferences
b) Sort by list key for duct for ducts with different parameters (Shape, Union in Routing Preferences)