ATTDEF Command

Creates an attribute definition

Command line: attdef

Attribute modes -- Invisible:N Constant:N Verify:N Preset:N
Enter (ICVP) to change, ENTER when done: Enter i, c, v, or p, or press ENTER
Attribute tag: Enter any characters except spaces or exclamation marks
Attribute prompt: Enter the text for the prompt line or press ENTER
Default attribute value: Enter the appropriate text or press ENTER
Attribute value: Enter a value


An attribute is informational text associated with a block. An attribute definition is a template for creating an attribute. Use ATTDEF to work on the command line and DDATTDEF to work in the Attribute Definition dialog box.

Attribute Mode

Sets four optional modes. Entering i, c, v, or p toggles among the modes. The AFLAGS system variable stores the current mode settings and can be used to set the default modes.

Attribute Tag

Enter a name for the attribute. The attribute tag identifies each occurrence of an attribute in the drawing. The tag can contain any characters except spaces or exclamation marks. AutoCAD LT changes lowercase letters to uppercase.

Attribute Prompt

Enter a prompt. The prompt you enter is displayed when you insert a block that contains an attribute definition into your drawing. If you press ENTER, AutoCAD LT uses the attribute tag as the prompt. If you turn on Constant mode, this prompt is not displayed.

Default Attribute Value

Enter the default attribute value. The default attribute value appears when a block is inserted into your drawing. A default value is not required. If Constant mode is turned on, AutoCAD LT skips this prompt and displays the Attribute Value prompt instead.

Justify / Style / Start Point: Enter an option or press ENTER

Attribute Value

Specifies the value for a constant attribute.

Justify / Style / Start Point: Enter an option or press ENTER

Related Commands: DDATTDEF uses dialog boxes to create an attribute definition for text to be associated with a block. ATTDISP globally controls the visibility of attributes. DDATTE and ATTEDIT edit attributes independently of the block definition with which they're associated. DDATTEXT and ATTEXT extract attribute data.
System Variables: ATTDIA causes the INSERT command to use dialog boxes for entry of attribute values. ATTMODE controls the attribute display mode. ATTREQ determines whether the INSERT command uses default attribute settings during insertion of blocks.