How to change line color with ArchiCAD connection randomly?

unhandled

(Probosciger) #1

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.
roads.gh (13.1 KB)
Thanks.


#2

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


(Probosciger) #3

thanks!