mozman / ezdxf

Python interface to DXF

Home Page:https://ezdxf.mozman.at

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I try to get the text in the dwg, But the returned data is similar to Unicode,How can I get the normal text?

xbdr419 opened this issue · comments

image

Codes:

from ezdxf.addons import odafc
doc = odafc.readfile(r'test.dwg')
msp = doc.modelspace()
for e in msp:
    if e.dxftype() == 'MTEXT':
        if 'B133002587' in e.dxf.text:
            print(e.dxf.text)

Result:
image

File:
test.zip

Hello, When I try to get the text in the dwg, But the returned data is similar to Unicode,How can I get the normal text?
Ths !