AttDef

The ATTDEF (DXF Reference) entity is a template in a BlockLayout, which will be used to create an attached Attrib entity for an Insert entity.

Subclass of

ezdxf.entities.Text

DXF type

'ATTDEF'

Factory function

ezdxf.layouts.BaseLayout.add_attdef()

Inherited DXF attributes

Common graphical DXF attributes

Warning

Do not instantiate entity classes by yourself - always use the provided factory functions!

class ezdxf.entities.Attdef

ATTDEF supports all DXF attributes and methods of parent class Text.

dxf.tag

Tag to identify the attribute (str)

dxf.text

Attribute content as text (str)

dxf.prompt

Attribute prompt string. (CAD application feature)

dxf.field_length

Just relevant to CAD programs for validating user input

is_invisibe

Attribute is invisible (does not appear).

is_const

This is a constant attribute.

is_verify

Verification is required on input of this attribute. (CAD application feature)

is_preset

No prompt during insertion. (CAD application feature)