Skip to content

Latest commit

 

History

History
193 lines (100 loc) · 4.4 KB

dxftag_collections.rst

File metadata and controls

193 lines (100 loc) · 4.4 KB
.. automodule:: ezdxf.lldxf.tags

Subclass of list.

Collection of :class:`~ezdxf.lldxf.types.DXFTag` as flat list. Low level tag container, only required for advanced stuff.

.. automethod:: from_text(text: str) -> Tags

.. automethod:: dxftype

.. automethod:: get_handle

.. automethod:: replace_handle

.. automethod:: has_tag

.. automethod:: has_embedded_objects

.. automethod:: get_first_tag(code: int, default=DXFValueError) -> DXFTag

.. automethod:: get_first_value(code: int, default=DXFValueError) -> Any

.. automethod:: find_all(code: int) -> List[DXFTag]

.. automethod:: filter(codes: Iterable[int]) -> Iterable[DXFTag]

.. automethod:: collect_consecutive_tags(codes: Iterable[int], start: int = 0, end: int = None) -> Tags

.. automethod:: tag_index

.. automethod:: update(tag: DXFTag)

.. automethod:: set_first(tag: DXFTag)

.. automethod:: remove_tags

.. automethod:: remove_tags_except

.. automethod:: pop_tags(codes: Iterable[int]) -> Iterable[DXFTag]

.. automethod:: strip(tags: Tags, codes: Iterable[int]) -> Tags
.. autofunction:: group_tags(tags: Iterable[DXFTag], splitcode: int = 0) -> Iterable[Tags]


.. module:: ezdxf.lldxf.extendedtags

Represents the extended DXF tag structure introduced with DXF R13.

Args:
tags: iterable of :class:`~ezdxf.lldxf.types.DXFTag` legacy: flag for DXF R12 tags
.. attribute:: appdata

    Application defined data as list of :class:`Tags`

.. attribute:: subclasses

    Subclasses as list of :class:`Tags`

.. attribute:: xdata

    XDATA as list of :class:`Tags`

.. attribute:: embedded_objects

    embedded objects as list of :class:`Tags`

.. autoattribute:: noclass

.. automethod:: get_handle

.. automethod:: dxftype

.. automethod:: replace_handle

.. automethod:: legacy_repair

.. automethod:: clone() -> ExtendedTags

.. automethod:: flatten_subclasses

.. automethod:: get_subclass(name: str, pos: int = 0) -> Tags

.. automethod:: has_xdata

.. automethod:: get_xdata(appid: str) -> Tags

.. automethod:: set_xdata

.. automethod:: new_xdata(appid: str, tags: 'IterableTags' = None) -> Tags

.. automethod:: has_app_data

.. automethod:: get_app_data(appid: str) -> Tags

.. automethod:: get_app_data_content(appid: str) -> Tags

.. automethod:: set_app_data_content

.. automethod:: new_app_data(appid: str, tags: 'IterableTags' = None, subclass_name: str = None) -> Tags

.. automethod:: from_text(text: str, legacy: bool = False) -> ExtendedTags
.. module:: ezdxf.lldxf.packedtags

Packed DXF Tags

Store DXF tags in compact data structures as list or :class:`array.array` to reduce memory usage.