Share
 
 

About Contextual Fields in Blocks and Xrefs

Some fields are contextual; that is, their value is different depending on which space or layout they reside in. For example, because each layout can have a different page setup attached, the value displayed by the PlotOrientation field can be different in different layouts in the same drawing.

List of contextual fields

CurrentLayoutCategory

CurrentLayoutTitle

CurrentLayoutCustom

DeviceName

CurrentLayoutDescription

PageSetupName

CurrentLayoutGroup

PaperSize

CurrentLayoutIssuePurpose

PlotDate

CurrentLayoutNumber

PlotOrientation

CurrentLayoutNumberAndTitle

PlotScale

CurrentLayoutRevisionDate

PlotStyleTable

CurrentLayoutRevisionNumber

Note: The Block Placeholder and Hyperlink fields are not available in AutoCAD 2014. The drawings created in AutoCAD that contain these fields can be opened and the cached value is displayed.

For compatibility with previous releases, contextual fields in blocks and xrefs are not updated when you insert them in a drawing; instead, the field displays the last cached value. Therefore, if you want to use a contextual field within a block, for example, a title block, you must insert the field as an attribute. For example, a title block can use the CurrentLayoutNumber field as an attribute. When you insert the title block, the field displays the number of the layout on which the title block is inserted.

Most fields are not contextual and are updated in blocks and xrefs. Fields in xrefs are updated based on the host file, not the source xref. These fields do not have to be placed in attributes. For example, a field that displays the number of a particular Layout in a Project and that updates if that Layout number changes, is a property of the Project When you create the field, you select the Project field name, select the project and the layout that you want in the project navigation tree, and then select the property LayoutNumber for the field value to be displayed. This field displays the layout number of that layout, even if you put the field in a block and insert it in another drawing. If the layout is removed from the project, it no longer has a number, and the field becomes invalid and displays pound signs.

Some project fields can be inserted as placeholders. For example, when you create your own callout blocks and label blocks, you can insert the CurrentLayoutNumber field as a placeholder. Later, when the block is inserted from the Project Manager, the field displays the layout number of the drawing.

Compatibility with Previous Releases

When a drawing with fields is opened in AutoCAD 2004 or earlier, the fields are not updated; they display the value last displayed in the drawing before it was opened. If no changes are made to a field, it is updated normally when it is reopened in a release that supports fields.

Was this information helpful?