1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
Table Classes
=============
.. module:: ezdxf.sections.table
Generic Table Class
-------------------
.. class:: Table
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
-----------
.. class:: LayerTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.Layer` objects.
.. automethod:: add
Linetype Table
--------------
.. class:: LinetypeTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.Linetype` objects.
.. automethod:: add
Style Table
-----------
.. class:: TextstyleTable
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
--------------
.. class:: DimStyleTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.DimStyle` objects.
.. automethod:: add
AppID Table
-----------
.. class:: AppIDTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.AppID` objects.
.. automethod:: add
UCS Table
---------
.. class:: UCSTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.UCSTableEntry` objects.
.. automethod:: add
View Table
----------
.. class:: ViewTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.View` objects.
.. automethod:: add
Viewport Table
--------------
.. class:: ViewportTable
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
------------------
.. class:: BlockRecordTable
Subclass of :class:`Table`.
Collection of :class:`~ezdxf.entities.BlockRecord` objects.
.. automethod:: add
|