Skip to content

Latest commit

 

History

History
153 lines (83 loc) · 2.69 KB

tables.rst

File metadata and controls

153 lines (83 loc) · 2.69 KB

Table Classes

.. module:: ezdxf.sections.table

Generic Table Class

Generic collection of table entries. Table entry names are case insensitive: "Test" == "TEST".

.. automethod:: key

.. automethod:: has_entry

.. automethod:: __contains__

.. automethod:: __len__

.. automethod:: __iter__

.. automethod:: new

.. automethod:: get

.. automethod:: remove

.. automethod:: duplicate_entry

Layer Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.Layer` objects.

.. automethod:: add

Linetype Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.Linetype` objects.

.. automethod:: add

Style Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.Textstyle` objects.

.. automethod:: add

.. automethod:: add_shx

.. automethod:: get_shx

.. automethod:: find_shx

.. automethod:: discard_shx

DimStyle Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.DimStyle` objects.

.. automethod:: add

AppID Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.AppID` objects.

.. automethod:: add

UCS Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.UCSTableEntry` objects.

.. automethod:: add

View Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.View` objects.

.. automethod:: add

Viewport Table

The viewport table stores the modelspace viewport configurations. A viewport configuration is a tiled view of multiple viewports or just one viewport. In contrast to other tables the viewport table can have multiple entries with the same name, because all viewport entries of a multi-viewport configuration are having the same name - the viewport configuration name.

The name of the actual displayed viewport configuration is "*ACTIVE".

Duplication of table entries is not supported: :meth:`duplicate_entry` raises :class:`NotImplementedError`

.. automethod:: add

.. automethod:: get_config(self, name: str) -> List[VPort]

.. automethod:: delete_config

Block Record Table

Subclass of :class:`Table`.

Collection of :class:`~ezdxf.entities.BlockRecord` objects.

.. automethod:: add