Translated by moderator. See below the line for original post.
Hello everyone,
I’d like to create a Dynamo script that automatically reads the material color codes of the pipe system types and then applies these colors to the graphical overrides of the line colors. Pipe system types with the same material color code should automatically receive the same line color in the graphical overrides.
The goal is to keep the color definitions consistent and reduce the manual effort required to maintain the graphical representation.
Specifically, the script should: read the material color codes of the pipe system types, determine the corresponding colors, adjust the graphical overrides accordingly, and automatically link identical material color codes with the same line color.
Since I couldn’t do this directly in the script, I tried overriding line colors via Excel.
Kind regards,
Kösedag Ünal
Original post below
Hallo zusammen,
ich möchte ein Dynamo-Skript erstellen, das die Materialfarbcodes der Rohrsystemtypen automatisch ausliest und diese Farben anschließend in die grafischen Überschreibungen der Linienfarben übernimmt. Dabei sollen Rohrsystemtypen mit demselben Materialfarbcode automatisch die gleiche Linienfarbe in den grafischen Überschreibungen erhalten.
Ziel ist es, die Farbdefinitionen konsistent zu halten und den manuellen Aufwand bei der Pflege der grafischen Darstellung zu reduzieren.
Konkret soll das Skript: die Materialfarbcodes der Rohrsystemtypen auslesen, die zugehörigen Farben ermitteln, die grafischen Überschreibungen entsprechend anpassen, und identische Materialfarbcodes automatisch mit derselben Linienfarbe verknüpfen.
Weil ich nihct direkt im Skript geschafft habe, habe versucht über Excel Linienfarben zu überschreiben.
Freundliche Grüsse
Kösedag Ünal







