-ATTDEF — Define Attributes (command line)
Defines an attribute on the command line, like AutoCAD -ATTDEF.
- Command:
-ATTDEF· Global name:_-ATTDEF· Alias:-ATT
Creates an attribute definition on the command line, with the AutoCAD 2027 -ATTDEF prompts. This is what ATTDEF does in scripts, SCRIPT and AutoLISP.
Usage
- Enter -ATTDEF (or -ATT).
- Change the modes you need by entering their option (each time it toggles between Y and N) and press Enter when done. The modes are kept for the next definition (like AFLAGS in AutoCAD).
Current attribute modes: Invisible=… Constant=… Verify=… Preset=… Lock position=… Annotative=N Multiple lines=N. Enter an option to change [Invisible/Constant/Verify/Preset/Lock position/Annotative/Multiple lines] <done>:
- Enter the tag: a single word without spaces, converted to uppercase.
Enter attribute tag name:
- Enter the prompt, the text shown when the block is inserted (not asked if the attribute is constant).
Enter attribute prompt:
- Enter the default value (or the fixed value, if it is constant).
Enter default attribute value:
- Specify the start point of the text (or an option), its height and its rotation angle.
Specify start point of text or [Justify/Style]:
Options
- Invisible (I): the value is not shown in the drawing.
- Constant (C): the value is fixed and is not asked on insertion.
- Verify (V): flags the attribute so that its value is checked on insertion.
- Preset (P): flags the attribute so that it takes its default value.
- Lock position (L): the attribute cannot be moved apart from the block (on at startup).
- Justify (J): the text justification (the one-point ones of TEXT).
Enter an option [Left/Center/Right/Align/Middle/Fit/TL/TC/TR/ML/MC/MR/BL/BC/BR]:
- Style (S): the text style.
Enter style name or [?] <…>:
Notes
- The default height is the fixed height of the text style or, if it has none, the last one used (TEXTSIZE). With a fixed-height style it is not asked.
- Annotative and multiline attributes are not available yet (Annotative and Multiple lines give a warning).