@staticmethod
def draw_collection(collection, names=None, colors=None, layer=None, clear=False, add_to_group=False, group_name=None):
    'Draw a collection of lines.\n\n        Parameters\n        ----------\n        collection: list of compas.geometry.Line\n            A collection of ``Line`` objects.\n        names : list of str, optional\n            Individual names for the lines.\n        colors : color or list of color, optional\n            A color specification for the lines as a single color or a list of individual colors.\n        layer : str, optional\n            A layer path.\n        clear : bool, optional\n            Clear the layer before drawing.\n        add_to_group : bool, optional\n            Add the frames to a group.\n        group_name : str, optional\n            Name of the group.\n\n        Returns\n        -------\n        guids: list\n            A list of GUIDs if the collection is not grouped.\n        groupname: str\n            The name of the group if the collection objects are grouped.\n\n        '
    lines = [{'start': list(line[0]), 'end': list(line[1])} for line in collection]
    if colors:
        if isinstance(colors[0], (int, float)):
            colors = iterable_like(collection, [colors], colors)
        else:
            colors = iterable_like(collection, colors, colors[0])
        for (line, rgb) in zip(lines, colors):
            line['color'] = rgb
    if names:
        if isinstance(names, basestring):
            names = iterable_like(collection, [names], names)
        else:
            names = iterable_like(collection, names, names[0])
        for (line, name) in zip(lines, names):
            line['name'] = name
    guids = compas_rhino.draw_lines(lines, layer=layer, clear=clear)
    if (not add_to_group):
        return guids
    group = compas_rhino.rs.AddGroup(group_name)
    if group:
        compas_rhino.rs.AddObjectsToGroup(guids, group)
    return group
Draw a collection of lines.

Parameters
----------
collection: list of compas.geometry.Line
    A collection of ``Line`` objects.
names : list of str, optional
    Individual names for the lines.
colors : color or list of color, optional
    A color specification for the lines as a single color or a list of individual colors.
layer : str, optional
    A layer path.
clear : bool, optional
    Clear the layer before drawing.
add_to_group : bool, optional
    Add the frames to a group.
group_name : str, optional
    Name of the group.

Returns
-------
guids: list
    A list of GUIDs if the collection is not grouped.
groupname: str
    The name of the group if the collection objects are grouped.
@staticmethod
def draw_collection(collection, names=None, colors=None, layer=None, clear=False, add_to_group=False, group_name=None):
    'Draw a collection of lines.\n\n        Parameters\n        ----------\n        collection: list of compas.geometry.Line\n            A collection of ``Line`` objects.\n        names : list of str, optional\n            Individual names for the lines.\n        colors : color or list of color, optional\n            A color specification for the lines as a single color or a list of individual colors.\n        layer : str, optional\n            A layer path.\n        clear : bool, optional\n            Clear the layer before drawing.\n        add_to_group : bool, optional\n            Add the frames to a group.\n        group_name : str, optional\n            Name of the group.\n\n        Returns\n        -------\n        guids: list\n            A list of GUIDs if the collection is not grouped.\n        groupname: str\n            The name of the group if the collection objects are grouped.\n\n        '
    lines = [{'start': list(line[0]), 'end': list(line[1])} for line in collection]
    if colors:
        if isinstance(colors[0], (int, float)):
            colors = iterable_like(collection, [colors], colors)
        else:
            colors = iterable_like(collection, colors, colors[0])
        for (line, rgb) in zip(lines, colors):
            line['color'] = rgb
    if names:
        if isinstance(names, basestring):
            names = iterable_like(collection, [names], names)
        else:
            names = iterable_like(collection, names, names[0])
        for (line, name) in zip(lines, names):
            line['name'] = name
    guids = compas_rhino.draw_lines(lines, layer=layer, clear=clear)
    if (not add_to_group):
        return guids
    group = compas_rhino.rs.AddGroup(group_name)
    if group:
        compas_rhino.rs.AddObjectsToGroup(guids, group)
    return group