Draft: Create Draft texts when using the C++ DXF importer

This commit is contained in:
Yorik van Havre
2021-06-22 13:00:58 +02:00
parent c46036a1b8
commit 08c3a6b3e7

View File

@@ -2795,6 +2795,8 @@ def open(filename):
FreeCAD.setActiveDocument(doc.Name)
import Import
Import.readDXF(filename)
Draft.convertDraftTexts() # convert annotations to Draft texts
doc.recompute()
def insert(filename, docname):
@@ -2841,7 +2843,8 @@ def insert(filename, docname):
else:
import Import
Import.readDXF(filename)
Draft.convertDraftTexts() # convert annotations to Draft texts
doc.recompute()
def getShapes(filename):
"""Read a DXF file, and return a list of shapes from its contents.