Automate writing of a Piping System Parameter

Hi, i’d like if you could help with my first dynamo code. It’s purpose is to calculate the lenght of a piping system (pipes and elbows), it may be unfuctional as of now, but it works by inserting the system ID.
I’ll attach the codes outlook


.

Since i’ve got 150 systems in my project i’d like to run the script one time and obtain all the 150 SystemLenght parameter values.
Is it possible? maybe with some extension (i used clockwork for a couple of tests)

Hi, I think you’re on right way. Just few comments

  1. To make it work for multiple systems, you can add few nodes at the beginning, like Element.Classes (select piping systems class) and connect it to All Elements of Class node. You’ll get all existing piping systems in model. Then you can filter them if needed. Of course, you’ll propable need to adjust script to be working with multiple elements. Some lacings and list levels @L2 included.

  2. System may contain not only pipes and elbows, but also crosses, tees, taps, valves and equipment, which can make it harder to calculate i’ts lengs. But it is possible. If not digging into details, you can find a distance between connectors (or from each connector to family origin) and add it to a total length.

1 Like