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
|
AttDef
======
.. module:: ezdxf.entities
:noindex:
The ATTDEF (`DXF Reference`_) entity is a template in a :class:`~ezdxf.layouts.BlockLayout`, which will be used to
create an attached :class:`Attrib` entity for an :class:`Insert` entity.
======================== ==========================================
Subclass of :class:`ezdxf.entities.Text`
DXF type ``'ATTDEF'``
Factory function :meth:`ezdxf.layouts.BaseLayout.add_attdef`
Inherited DXF attributes :ref:`Common graphical DXF attributes`
======================== ==========================================
.. seealso::
:ref:`tut_blocks`
.. warning::
Do not instantiate entity classes by yourself - always use the provided factory functions!
.. class:: AttDef
ATTDEF supports all DXF attributes and methods of parent class :class:`Text`.
.. attribute:: dxf.tag
Tag to identify the attribute (str)
.. attribute:: dxf.text
Attribute content as text (str)
.. attribute:: dxf.prompt
Attribute prompt string. (CAD application feature)
.. attribute:: dxf.field_length
Just relevant to CAD programs for validating user input
.. autoproperty:: is_invisible
.. autoproperty:: is_const
.. autoproperty:: is_verify
.. autoproperty:: is_preset
.. autoproperty:: has_embedded_mtext_entity
.. automethod:: virtual_mtext_entity
.. automethod:: plain_mtext
.. automethod:: set_mtext
.. automethod:: embed_mtext
.. _DXF Reference: http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-F0EA099B-6F88-4BCC-BEC7-247BA64838A4
|