draw_lines
- compas_rhino.utilities.draw_lines(lines, **kwargs)[source]
Draw lines and optionally set individual name, color, arrow, layer, and width properties.
- Parameters
labels (list[dict]) – A list of line dictionaries. See Notes, for more information about the structure of the dict.
- Returns
list[System.Guid]
Notes
A line dict has the following schema:
Schema({ 'start': And(list, lambda x: len(x) == 3), 'end': And(list, lambda x: len(x) == 3), 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, Optional('width', default=None): Or(int, float), })