You can use filters with macros to show attributes for specific items. You can attach a filter when creating your macro, or define a filter and attach it to an existing macro. In this example you will define a filter that shows only the manufacturer and model of DP Transmitter.
-
Generate a drawing for loop 101-F-100.
-
Click Actions > Item > Define Filter.
You can also access this command by clicking Define Filter () on the Actions toolbar.
-
Switch to Smart Instrumentation to view the Define Filter for Item dialog box, and do the following:
-
From the Filter for list, select Instrument.
-
From the Filter list, select DP Transmitter.
Click Browse to search for a filter or create a new filter name.
-
-
Click Edit, and then do the following:
-
Click Add.
-
From the Property list, select Instrument Type Desc.
-
From the Operator list, select the operator equals (=).
-
From the Value list, select D/P Type Flow Transmitter.
The dialog box should appear as shown:
-
-
Click Apply, and then click OK.
-
On the generated drawing, click tag 101-FT-100.
-
Do one of the following:
-
Click Actions > Macro > Properties.
-
Click Edit Macro Properties () on the Actions toolbar.
-
-
On the Macro Properties dialog box, from the Filter list, select DP Transmitter.
-
Select the Use filter check box.
The dialog box should appear as shown:
-
Click OK.
-
Click the macro label MFR for tag 101-FT-100, and then do one of the following:
-
Click Actions > Macro > Properties.
-
Click on the Actions toolbar.
-
-
On the Macro Properties dialog box, select the Use filter check box to activate the filter.
-
Click OK.
-
Repeat the procedure for the macro value Rosemount, and for the macro label MDL and its value for tag 101-FY-100.
The filter hides the labels and values for those tags that are not DP Transmitters, as shown:
-
On the main toolbar, click Save Custom Changes ().
-
On the Save Custom Changes dialog box, click OK.