def set_data(self, entities: Iterable[DXFEntity]) -> None:
    '  Set `entities` as new group content, entities should be an iterable\n        :class:`DXFGraphic` or inherited (LINE, CIRCLE, ...).\n        Raises :class:`DXFValueError` if not all entities be on the same layout\n        (modelspace or any paperspace layout but not block)\n\n        '
    entities = list(entities)
    if (not all_entities_on_same_layout(entities)):
        raise const.DXFStructureError('All entities have to be in the same layout and are not allowed to be in a block layout.')
    self.clear()
    self._data = entities
Set `entities` as new group content, entities should be an iterable
:class:`DXFGraphic` or inherited (LINE, CIRCLE, ...).
Raises :class:`DXFValueError` if not all entities be on the same layout
(modelspace or any paperspace layout but not block)
def set_data(self, entities: Iterable[DXFEntity]) -> None:
    '  Set `entities` as new group content, entities should be an iterable\n        :class:`DXFGraphic` or inherited (LINE, CIRCLE, ...).\n        Raises :class:`DXFValueError` if not all entities be on the same layout\n        (modelspace or any paperspace layout but not block)\n\n        '
    entities = list(entities)
    if (not all_entities_on_same_layout(entities)):
        raise const.DXFStructureError('All entities have to be in the same layout and are not allowed to be in a block layout.')
    self.clear()
    self._data = entities