Good afternoon,
I need to perform a subtraction following the direction of the fluid, in the image below, it can be seen that the pipe connections and accessories of pipes and plumbing parts there is a parameter “Pipe Stretch”, which in revit is also defined as a section.
in my routine, she separates all pipes, connections and pipe fittings and plumbing parts according to the section/pipe section parameter, right after that she removes all the pipes that are horizontal, and collects the position/location in the Z exit.
now I need this routine to perform the following task, the section “1-2” subtract the section “2-3” and so on, but when there is only one tube in the section the dynamo works correctly the problem happens when there is more of a horizontal tube belonging to the same stretch, for example below in the image has a better explanation.
FILES:
https://drive.google.com/drive/folders/1JLiJ0HW2nwRaxBC-dPPMShIlJWFrSRJb?usp=sharing