Skip to content

Commit

Permalink
Merge pull request #1194 from gswifort/patch-1
Browse files Browse the repository at this point in the history
Insert.add_auto_attribs() support MText attrs
  • Loading branch information
mozman authored Nov 6, 2024
2 parents 00dd343 + 5f2521a commit 6d15637
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ezdxf/entities/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ def autofill() -> None:
dxfattribs = attdef.dxfattribs(drop={"prompt", "handle"})
tag, text, location = unpack(dxfattribs)
attrib = self.add_attrib(tag, text, location, dxfattribs)
if attdef.has_embedded_mtext_entity:
mtext = attdef.virtual_mtext_entity()
mtext.text = text
attrib.embed_mtext(mtext)
attrib.transform(m)

block_layout = self.block()
Expand Down

0 comments on commit 6d15637

Please sign in to comment.