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[dict]) – A list of polyline dictionaries. See Notes, for more information about the structure of the dict.

Returns

list[System.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
})