FIELD — Field
Inserts an updatable field: date, file name, drawing properties or an object property.
- Command:
FIELD· Global name:_FIELD· Alias:FLD - Ribbon: Annotate › Text
Inserts a field: a text whose value is computed and updated automatically, such as the date, the file name, the drawing author or a property of an object (the length of a line, the area of a boundary...). The field can go in a new text or replace the contents of an existing text.
Usage
- Enter FIELD (or FLD). The Field dialog box opens.
- Choose the field in Field names: and, for the date, its Format:. With Object, click Select object, select the object and, back in the dialog box, choose the Property:. Below you see the Field expression: (which can be edited) and the value it gives. Click OK. At the command line (scripts or FILEDIA set to 0), the same choices are typed:
Enter field [Date/Filename/Author/Title/Subject/Login/Object] <Date>: Enter property [Length/Area/Radius/Diameter/anGle/laYer] <Length>:
- Specify where the new text starts, or choose Select text and select a text, a multiline text, an attribute definition or a block with attributes (the field goes to the attribute nearest to the picked point).
Specify text start point or [Select text]: Select the text, or the block with attributes, to hold the field:
Fields
| Option | Value |
|---|---|
| Date | Today's date (in the short date format of the interface language) |
| Filename | The drawing file name |
| Author, Title, Subject | The drawing properties |
| Login | The user logged on to the computer |
| Object | Length, Area, Radius, Diameter, anGle or laYer of the selected object |
Notes
- The new text is a multiline text with the current text style and height.
- Fields are shown on a gray background, which is not plotted; FIELDDISPLAY turns it off.
- They are updated when the drawing is opened and saved and with UPDATEFIELD; the date, only with the latter.
- They are saved as in AutoCAD, which recognizes and updates them.
- Inside the MTEXT editor, fields are inserted with its Field button. A field that cannot be evaluated is shown as
####.