def all_entities_on_same_layout(entities: Iterable[DXFEntity]):
    ' Check if all entities are on the same layout (model space or any paper\n    layout but not block).\n\n    '
    owners = set((entity.dxf.owner for entity in entities))
    return (len(owners) < 2)
Check if all entities are on the same layout (model space or any paper
layout but not block).
def all_entities_on_same_layout(entities: Iterable[DXFEntity]):
    ' Check if all entities are on the same layout (model space or any paper\n    layout but not block).\n\n    '
    owners = set((entity.dxf.owner for entity in entities))
    return (len(owners) < 2)