Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 456 Bytes

get_entity_type.rst

File metadata and controls

18 lines (11 loc) · 456 Bytes

Get DXF Entity Type

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