draw_curves

compas_rhino.utilities.draw_curves(curves, **kwargs)[source]

Draw curves and optionally set individual name, color, and layer properties.

Parameters

curves (list[dict]) – A list of curve dictionaries. See Notes, for more information about the structure of the dict.

Returns

list[System.Guid]

Notes

A curve dict has the following schema:

Schema({
    'curve': compas.geometry.Curve,
    Optional('name', default=''): str,
    Optional('color', default=None): And(lambda x: len(x) == 3, all(0 <= y <= 255 for y in x)),
    Optional('layer', default=None): str
})