draw_polylines

compas_rhino.utilities.draw_polylines(polylines, **kwargs)[source]

Draw polylines, and optionally set individual name, color, arrow, and layer properties.

Parameters

labels (list of dict) – A list of polyline dictionaries.

Returns

list of GUID

Notes

A polyline dict has the following schema:

Schema({
    'points': And(list, lambda x: all(len(point) == 3 for point in x),
    Optional('name', default=''): str,
    Optional('color', default=None): (lambda x: len(x) == 3 and all(0 <= y <= 255 for y in x)),
    Optional('layer', default=None): str,
    Optional('arrow', default=None): str
})