The :meth:`~ezdxf.entities.DXFEntity.dxftype` method returns the entity type as defined by the DXF reference as an uppercase string.
e = msp.add_line((0, 0), (1, 0))
assert e.dxftype() == "LINE"
.. seealso:: - `DXF Reference`_ for DXF R2018
The :meth:`~ezdxf.entities.DXFEntity.dxftype` method returns the entity type as defined by the DXF reference as an uppercase string.
e = msp.add_line((0, 0), (1, 0))
assert e.dxftype() == "LINE"
.. seealso:: - `DXF Reference`_ for DXF R2018