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
|
DXF Entity Base Class
=====================
.. module:: ezdxf.entities
:noindex:
Common base class for all DXF entities and objects.
.. warning::
Do not instantiate entity classes by yourself - always use the provided factory functions!
.. if adding features - also update DXFObject
.. class:: DXFEntity
.. attribute:: dxf
The DXF attributes namespace::
# set attribute value
entity.dxf.layer = 'MyLayer'
# get attribute value
linetype = entity.dxf.linetype
# delete attribute
del entity.dxf.linetype
.. attribute:: dxf.handle
DXF `handle` is a unique identifier as plain hex string like ``F000``. (feature for experts)
.. attribute:: dxf.owner
Handle to `owner` as plain hex string like ``F000``. (feature for experts)
.. attribute:: doc
Get the associated :class:`~ezdxf.document.Drawing` instance.
.. autoproperty:: is_alive
.. autoproperty:: is_virtual
.. autoproperty:: is_bound
.. autoproperty:: is_copy
.. autoproperty:: uuid
.. autoproperty:: source_of_copy
.. autoproperty:: origin_of_copy
.. autoproperty:: has_source_block_reference
.. autoproperty:: source_block_reference
.. automethod:: dxftype
.. automethod:: __str__
.. automethod:: __repr__
.. automethod:: has_dxf_attrib
.. automethod:: is_supported_dxf_attrib
.. automethod:: get_dxf_attrib
.. automethod:: set_dxf_attrib
.. automethod:: del_dxf_attrib
.. automethod:: dxfattribs
.. automethod:: update_dxf_attribs
.. automethod:: set_flag_state
.. automethod:: get_flag_state
.. autoattribute:: has_extension_dict
.. automethod:: get_extension_dict
.. automethod:: new_extension_dict
.. automethod:: discard_extension_dict
.. automethod:: discard_empty_extension_dict
.. automethod:: has_app_data
.. automethod:: get_app_data
.. automethod:: set_app_data
.. automethod:: discard_app_data
.. automethod:: has_xdata
.. automethod:: get_xdata
.. automethod:: set_xdata
.. automethod:: discard_xdata
.. automethod:: has_xdata_list
.. automethod:: get_xdata_list
.. automethod:: set_xdata_list
.. automethod:: discard_xdata_list
.. automethod:: replace_xdata_list
.. automethod:: has_reactors
.. automethod:: get_reactors
.. automethod:: set_reactors
.. automethod:: append_reactor_handle
.. automethod:: discard_reactor_handle
|