• AutoCAD

Add intelligent text fields to a drawing

Add a field to create intelligent text that is linked to drawing objects and properties.


00:04

A field is a special type of

00:06

text annotation that contains instructions to display data

00:10

that you expect to change during the life cycle of a drawing.

00:13

When a field is updated, the latest data is displayed,

00:17

for example, in the exercise file on the model tab,

00:21

you see a floor plan for a hospital,

00:24

various areas have been filled with solid hatch color coded to indicate their use.

00:30

Since the program can report the area of a hatch object.

00:34

You can use fields to create a legend that reports

00:37

the total area for each of the five usage categories.

00:42

Since fields are typically inserted as part of a text object

00:47

before you begin to create text on the status bar,

00:51

make sure the annotation scale is set to 1/8 inch equals 1 ft.

00:57

The scale at which the floor plan view will

00:60

most likely appear on the paper space layout.

01:05

Next on the home ribbon

01:07

in the layers panel, make sure text is the current layer

01:12

switch to the annotate ribbon

01:15

in the text panel,

01:17

expand the textile drop down

01:19

and in the style gallery select annotative if it

01:23

is not already set as the current textile.

01:27

Now you are ready to create text,

01:30

start the multi line text command.

01:33

When the program prompts you to specify the first corner

01:37

zoom into the legend in the lower right

01:41

and then use object snap tracking

01:44

to track to the right from the upper right corner of the first color swatch,

01:49

select a point

01:50

and then specify the opposite corner.

01:53

As soon as you do the ribbon changes to the text editor, contextual ribbon

01:58

in the style panel set the text height to 1/8 inch

02:03

if that is not already set as the text height.

02:07

Now you are ready to create the text

02:10

type patience space

02:13

and an open parenthesis.

02:17

Then on the contextual ribbon

02:19

in the insert panel, click the field tool

02:23

to open the field dialogue

02:26

with the field category set to all

02:29

the field names. List displays a list of all available fields.

02:37

Since you want to add a field that will report the area of a hatch object,

02:41

expand the field category, drop down and choose objects.

02:46

Now the list displays just those fields related to objects,

02:51

select object.

02:54

When you do a select object button appears adjacent to the object type field.

02:60

When you click this button,

03:01

the dialogue box temporarily disappears so that you can

03:05

select the object whose data you want to track.

03:08

Click to select the hatch object inside one of the patient rooms.

03:14

The dialogue box reappears

03:17

in the object type field. You can see that you selected a hatch object.

03:22

And in the property column,

03:23

you can see a list of all the properties associated with hatch objects.

03:27

Select area

03:30

in the format list.

03:32

You can choose how you want the field data to be formatted.

03:36

By default, the field will use the current display units,

03:40

select architectural,

03:43

expand the precision drop down

03:46

here. You can specify the number of decimal places.

03:49

By default.

03:50

The program will use the same number of decimal places as the current display units

03:54

change this to zero.

03:57

As you make each change, you can see the results in the preview field.

04:03

Click additional format to open the additional format dialogue.

04:08

You can use the tools in this dialogue to add additional formatting parameters.

04:13

For example, you could change the conversion factor

04:17

which is currently set to convert square inches into square feet.

04:23

In the additional text group box, you can add a prefix or suffix,

04:28

expand the thousands drop down and choose comma

04:32

to add a comma between the hundreds and thousands place in large numbers.

04:38

Tools in the zero suppression group box,

04:40

let you suppress leading and trailing zeros,

04:45

click OK to close both dialogue boxes,

04:50

then type a closing parenthesis

04:53

and then click close text editor.

04:57

You have just added a field as part of the text.

05:01

Although the field appears in the drawing with a shaded background,

05:04

the background only serves as a visual identifier.

05:08

So you can differentiate between fields and regular text.

05:12

The background does not show up when you print the drawing,

05:16

the appearance of the field, text is controlled by the text style setting,

05:21

just like regular text

05:23

on your own.

05:25

You can repeat these steps to add labels

05:27

and fields for the other four usage categories.

Video transcript

00:04

A field is a special type of

00:06

text annotation that contains instructions to display data

00:10

that you expect to change during the life cycle of a drawing.

00:13

When a field is updated, the latest data is displayed,

00:17

for example, in the exercise file on the model tab,

00:21

you see a floor plan for a hospital,

00:24

various areas have been filled with solid hatch color coded to indicate their use.

00:30

Since the program can report the area of a hatch object.

00:34

You can use fields to create a legend that reports

00:37

the total area for each of the five usage categories.

00:42

Since fields are typically inserted as part of a text object

00:47

before you begin to create text on the status bar,

00:51

make sure the annotation scale is set to 1/8 inch equals 1 ft.

00:57

The scale at which the floor plan view will

00:60

most likely appear on the paper space layout.

01:05

Next on the home ribbon

01:07

in the layers panel, make sure text is the current layer

01:12

switch to the annotate ribbon

01:15

in the text panel,

01:17

expand the textile drop down

01:19

and in the style gallery select annotative if it

01:23

is not already set as the current textile.

01:27

Now you are ready to create text,

01:30

start the multi line text command.

01:33

When the program prompts you to specify the first corner

01:37

zoom into the legend in the lower right

01:41

and then use object snap tracking

01:44

to track to the right from the upper right corner of the first color swatch,

01:49

select a point

01:50

and then specify the opposite corner.

01:53

As soon as you do the ribbon changes to the text editor, contextual ribbon

01:58

in the style panel set the text height to 1/8 inch

02:03

if that is not already set as the text height.

02:07

Now you are ready to create the text

02:10

type patience space

02:13

and an open parenthesis.

02:17

Then on the contextual ribbon

02:19

in the insert panel, click the field tool

02:23

to open the field dialogue

02:26

with the field category set to all

02:29

the field names. List displays a list of all available fields.

02:37

Since you want to add a field that will report the area of a hatch object,

02:41

expand the field category, drop down and choose objects.

02:46

Now the list displays just those fields related to objects,

02:51

select object.

02:54

When you do a select object button appears adjacent to the object type field.

02:60

When you click this button,

03:01

the dialogue box temporarily disappears so that you can

03:05

select the object whose data you want to track.

03:08

Click to select the hatch object inside one of the patient rooms.

03:14

The dialogue box reappears

03:17

in the object type field. You can see that you selected a hatch object.

03:22

And in the property column,

03:23

you can see a list of all the properties associated with hatch objects.

03:27

Select area

03:30

in the format list.

03:32

You can choose how you want the field data to be formatted.

03:36

By default, the field will use the current display units,

03:40

select architectural,

03:43

expand the precision drop down

03:46

here. You can specify the number of decimal places.

03:49

By default.

03:50

The program will use the same number of decimal places as the current display units

03:54

change this to zero.

03:57

As you make each change, you can see the results in the preview field.

04:03

Click additional format to open the additional format dialogue.

04:08

You can use the tools in this dialogue to add additional formatting parameters.

04:13

For example, you could change the conversion factor

04:17

which is currently set to convert square inches into square feet.

04:23

In the additional text group box, you can add a prefix or suffix,

04:28

expand the thousands drop down and choose comma

04:32

to add a comma between the hundreds and thousands place in large numbers.

04:38

Tools in the zero suppression group box,

04:40

let you suppress leading and trailing zeros,

04:45

click OK to close both dialogue boxes,

04:50

then type a closing parenthesis

04:53

and then click close text editor.

04:57

You have just added a field as part of the text.

05:01

Although the field appears in the drawing with a shaded background,

05:04

the background only serves as a visual identifier.

05:08

So you can differentiate between fields and regular text.

05:12

The background does not show up when you print the drawing,

05:16

the appearance of the field, text is controlled by the text style setting,

05:21

just like regular text

05:23

on your own.

05:25

You can repeat these steps to add labels

05:27

and fields for the other four usage categories.

Was this information helpful?