I’m using Mpover package for the script , i have selected two Equipments, got their connector details(points) using Mpover package , and then a list of elements in between those devices throught their centroid points (using select model elements and get their cetroid using bounding box and some of them are not just solid nut mix of solid and lines therefore boundingbox seemed working). later i collected all these points and sorted them by X,Y & Z points (i saw this way on dynamo forum). and connected these to flexpipe by curve(mpover package).
the trouble is sometimes i get the desired output but in other cases the pipes goes to random point then comes back to other random point and the output looks tangled wires.
Please help. Thanking you all in advance