Exemple #1
0
 def explode(self, mtext: MText, destroy=True):
     location = mtext.dxf.insert
     align = text_layout.LayoutAlignment(mtext.dxf.attachment_point)
     layout_engine = self.layout_engine(mtext)
     layout_engine.place(align=align)
     m = Matrix44.translate(location.x, location.y, location.z)
     layout_engine.render(m)
     if destroy:
         mtext.destroy()
Exemple #2
0
 def explode(self, mtext: MText, destroy=True):
     """Explode `mtext` and destroy the source entity if argument `destroy`
     is ``True``.
     """
     align = tl.LayoutAlignment(mtext.dxf.attachment_point)
     layout_engine = self.layout_engine(mtext)
     layout_engine.place(align=align)
     layout_engine.render(mtext.ucs().matrix)
     if destroy:
         mtext.destroy()