How to change line color with ArchiCAD connection randomly?

Hello. I retrieve 2D Polyline in Grasshopper and send it back to ArchiCAD as Polyline.

Here magentas Polylines in ArchiCAD connected with Grasshopper

Each segment of Polyline are separately from each other (it is not one big sigle polyline).
Question. Now I have magenta color for all segments in ArchiCAD. I want to have in ArchiCAD each segment with randomly different color (pen). How to make it?
You can check my definition in Attachment. (13.1 KB)

try the technique explained in this post. You should use “pens” instead of “composites”, but the rest of the logic could be the same.

1 Like