I am attempting to create a script which colors our mechanical engineer’s pipes (in their file) specific colors in all views. I’ve successfully made this work for active view, but rather than having them open Dynamo Player and running the script every time they change views, it would be great if this script worked for all views.
The way our engineers model pipes is to use the same pipe family and then use the pipe’s instance parameter “System Type” to distinguish them (hot water, cold water, vent, gas, etc.). My script currently identifies each pipe and sorts them by their “System Type” instance parameter and then colors them based on a selected color inside the script. There are currently 10 different System Types so I’ve managed to create unique colors for each type within the script.
Again, the biggest hurdle is getting this to work on all views all at once. Any tips?
Plumbing Color Overrides.dyn (96.1 KB)