Attrib

The ATTRIB (DXF Reference) entity represents a text value associated with a tag. In most cases an ATTRIB is appended to an Insert entity, but it can also appear as standalone entity.

Subclass of

ezdxf.entities.Text

DXF type

'ATTRIB'

Factory function

ezdxf.layouts.BaseLayout.add_attrib() (stand alone entity)

Factory function

Insert.add_attrib() (attached to Insert)

Inherited DXF attributes

Common graphical DXF attributes

Warning

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

class ezdxf.entities.Attrib

ATTRIB 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)

is_invisible

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)