Inserting Fields
You can add Fields to annotations, BlockAttributes and table cells. Fields let you update visible information such as modification date, drawing name, and author. For example, with Fields, you can keep text in title blocks accurate.
You can add Fields to annotations. Use Fields to update visible information such as modification date, drawing name, and author. For example, with Fields you can keep text in title blocks accurate.
Additionally, the Field command lets you include drawing sheet set information as field in any text entity from your drawing.
The Field dialog box includes field codes for specific drawing sheet set information such as drawing sheet number, description, or revision date. Custom properties that you defined for a drawing sheet or for the entire drawing sheet set are also available and you can insert them as fields.
You can access the Field dialog box when editing annotations, BlockAttributes, and table cells.
Tip: Create drawing sheets and use fields to automate the information displayed in title blocks, view labels, and callout blocks.
Fields are updated automatically when you save, print, or rebuild drawings.
You can update Fields in annotations manually with the RebuildField command.
To insert Fields:
- Do one of the following:
- On the ribbon, click Insert > Data > Field.
- On the menu, click Insert > Field.
- Type Field.
- On the toolbar, click
and select Field
from the flyout.
- In the dialog box, specify the Field to insert:
- Category: Delimits the field names in the Name list by category, for example Date/Time or Document.
- Name: Determines the Field to insert.
- Format: Specifies the format for the Field text, for example, lower or upper case for a character string or the date format for a date field.
- Property: Displays the properties list of the specified entity. Specify the property to insert.
Note: The options available in the Field dialog box change according to the specified Category and Name.
The preview area displays the Field text with the specified format.
- Click OK
.
- In the graphics area, specify the insertion point of the Field.
You can add Fields to Notes and SimpleNotes, and you can use Field names as default values for BlockAttribute definitions. You cannot use Fields in Tolerances. To insert a Field, click the Field button when you create a Note or SimpleNote, or when you specify a default value for BlockAttributes.
At any time, you can use Fields to display entity properties.
Note: The Field command uses the current TextStyle and text size.
Use the SetFieldDisplay command to specify whether Fields display with a gray background in annotations.
To use a field to display entity properties in a text entity:
- In the graphics area, double-click the text entity to switch to editing mode.
- Place the pointer where you want to insert the field.
- Right-click and select Insert Field from the context menu.
- In the Field dialog box, do the following:
- Click OK.
To insert a field in a table cell:
- In the graphics area, double-click a cell of a table.
- Place the pointer where you what to insert the field.
- Right-click and from the context menu, select Insert Field.
- In the Field dialog box, in Category, select All or another category.
- In Name, select a field.
The Preview area displays the default value of the specified field.
- Specify the format and any other required option.
- Click OK.
To insert a formula field in a table cell:
- In the graphics area, double-click a cell of a table.
- Place the pointer where you want to insert the field.
- Right-click and from the context menu, select Insert Field.
- In the Field dialog box, in Category, select Entities.
- In Name, select Formula.
- To specify the formula, do one of the following:
- Click Average, Sum, or Count. In the graphics area, click the first and the last cell to specify the range and press Enter. At any moment, you can click Evaluate to display the calculated value in the Preview area.
- Click Cell. In the graphics area, click the cell and press Enter.
- Optionally, specify the format and any other required option.
- Click OK.
The cell displays the calculated value.
To insert a field in a text:
- In the graphics area, double-click the text entity to switch to editing mode.
- Place the pointer where you want to insert the field.
- Right-click and select Insert Field from the context menu.
- In the Field dialog box, select the Category.
The Name list displays the fields available in the specified category.
- In the Name list, select the information to display in the text.
The current value of the specified field appears in the Preview area.
- In the Format list, specify the format.
Note: The available options vary according to the specified field. For example, when you select the Date field, the Format list displays the available data formats.
To insert a Block placeholder field in a BlockAttribute:
Note: Block placeholder fields are available only in the Block Editor.
- In the Block Editor, do one of the following:
- In the Block Attribute Definition, click Field.
- In the Field dialog box, in Category, select Entities.
- In Name, select BlockPlaceholder.
The Block reference property list displays all the elements of the CustomBlock and other properties such as Layer, Color, etc.
- In the Format list, specify the format.
Note: The available options vary according to the specified field. For example, when you select the Lineweight property, the Format list displays the available units.
Using Drawing Sheet Set Fields
You can create drawing sheets and use fields to automate the information displayed in title blocks, view labels, and callout blocks. The Field command lets you include drawing sheet set information as field in any text entity from your drawing. As the drawing sheet and drawing sheet set information changes, the data displayed in the title block, view labels, and callout blocks is always up-to-date.
You can create the field as a hyperlink to a drawing sheet or view. Later, when you move the corresponding drawing sheets and views in the Sheet Set Manager, the associated hyperlinks will jump to the correct location.
The Field dialog box includes field codes for specific drawing sheet set information such as drawing sheet number, description, or revision date. Custom properties that you defined for a drawing sheet or for the entire drawing sheet set are also available and you can insert them as fields. Specific field types are available in the DrawingSheetSet category.
- Fields for which the name starts with CurrentDrawingSheet lets you use properties related to the current drawing sheet.
- Field for which the name starts with CurrentDrawingSheetSet lets you use properties related to the current drawing sheet set.
- DrawingSheetSet. Lets you include an item of the specified drawing sheet set into a field.
- DrawingSheetSetPlaceholder. Lets you insert a placeholder in a callout block or in a view label. For example, you can define block attributes to display information such as view title or drawing sheet number in callout blocks specified for a drawing sheet set. When you use the callout block in a drawing sheet from the Sheet Set Manager, placeholders update automatically to display the correct values.
- DrawingSheetView. Lets you include an item of the specified drawing sheet set into a field.
Note: To update the value in a drawing sheet set field, use the RebuildField command.
To insert a drawing sheet set custom property field:
- Access the Field dialog box.
Note: You can access the Field dialog box when editing annotations, BlockAttributes, and table cells. For example, access the attribute definitions for each title block attribute for which you want to insert a field.
- In Category, select DrawingSheetSet.
The Name list displays all drawing sheet set properties.
- In Name, select one of the following:
- CurrentDrawingSheetSetCustom. Lets you include as fields custom properties that you defined for the entire drawing sheet set.
- CurrentDrawingSheetCustom. Lets you include as fields custom properties that you defined for the current drawing sheet set.
- In Custom property name, select the custom property to include as field.
- In the Format list, specify the format.
- Click OK.
To insert a drawing sheet set placeholder field:
You can define a block and use it as callout block or label block in a drawing shet set.
- Open the Block Attribute Definition dialog box for the callout block or label block that you use with the Drawing Sheet Set Manager.
- In Name, type a name for the field.
- In the right of the Default value, click Insert Field.
- In the Field dialog box, in Category, select DrawingSheetSet.
The Name list displays all drawing sheet set properties.
- In Name, select DrawingSheetSetPlaceholder.
- In Placeholder type, select the type of field.
- In the Format list, specify the format.
- Optionally, click Associate hyperlink to create the field as a hyperlink to a drawing sheet or view. Associating a hyperlink lets you click on the inserted callout block to open the associated drawing sheet or view.
Note: Associate hyperlink is not available for the ViewportScale and Custom fields.
- Click OK to close the Field dialog box.
The placeholder field displays its name. For example, DrawingSheetTitle.
- Click OK to close the Block Attribute dialog box.
- In the graphics area, specify the location of the field text.
Command: Field
Menu: Insert > Field
Toolbar: Field 
Ribbon: Insert > Data > (Flyout) Field