To attach text labels to drawing objects, create an annotation template first. An annotation template is a type of AutoCAD block. You define the template by defining the block in the Block Editor. The Block Editor is the canvas on which you lay out the components of the annotation. The relationship between each component determines how the annotation appears on each object when you attach the annotation later. For example, if you place a static label above a dynamic value, the final annotation has two lines (one above the other), like this example:
The text “Speed Limit =” is a static text label. The text “50” is a dynamic value supplied from an object data table.
If your drawing contains object data, or is linked to external data, you can specify properties of that data as values for the annotation. These properties are dynamic. When you attach the annotation to objects, each object displays its own value for that property.
For example, define an annotation for roads that uses the object data property "NumberOfLanes" and attach that template to a set of roads. The final annotation displays the number of lanes for each road.
In this tutorial, you use a drawing called AnnotationTutorial.dwg, which contains an object data table. You use a property in the object data table as the value for an annotation tag.
To create an annotation template
Click Open in the Quick Access toolbar.
The drawing opens, displaying the cloverleaf in the middle of the city of Redding.
Click the Annotate tab in the ribbon to see the Map Annotation options.
Other options in this dialog box are unavailable because there is no annotation template yet. The dialog box redisplays when you create and save the annotation template.
A new tab called Block Editor appears in the ribbon, and a new drawing opens in the Block Editor.
You can also enter the command MAPANNTEXT.
Press Enter in response to the prompt. The Annotation Text dialog box displays.
The button to the right of the Value field is the Expression Builder button.
Expand the Object Data nodes until you see SpeedLimit.
Make the annotation text blue and 30 units high.
Check the location of the axis markers by hovering over their intersection point and looking at the lower left corner of the window.
0,0 represents the anchor point on the object. The annotation block is offset from the object according to how far away the block insertion point is from 0,0.
If the axis is not at 0,0, select it and drag it until it is.
Once the axis points are aligned at 0,0, click near, but not on, where the x and y axes meet. Then press Enter.
Click where the text of the annotation should start.
The actual speed limit for each road replaces the placeholder “SpeedLimit.”
The Define Annotation Template dialog box displays.
There is no annotation in the drawing until you attach the template to objects.
To continue this tutorial, go to Exercise 2: Attach annotation to drawing objects.