Exemplo n.º 1
0
 def __init__(self):
     from ezdxf.entitydb import EntitySpace
     super().__init__()
     # Store entities in the block_record instead of BlockLayout and Layout,
     # because BLOCK_RECORD is also the hard owner of all the entities.
     self.entity_space = EntitySpace()
     self.block: Optional[Block] = None
     self.endblk: Optional[EndBlk] = None
     # stores also the block layout structure
     self.block_layout: Optional[BlockLayout] = None
Exemplo n.º 2
0
 def __init__(self, doc: 'Drawing' = None):
     from ezdxf.entitydb import EntitySpace
     super().__init__(doc)
     # Store entities in the block_record instead of BlockLayout and Layout, because BLOCK_RECORD is also the hard
     # owner of all the entities.
     self.entity_space = EntitySpace()
     self.block = None  # type: Block
     self.endblk = None  # type: EndBlk
     # stores also the block layout structure
     self.block_layout = None  # type: BlockLayout