Checking Project Objects

In the same environment RUN, a folder is available with the name of Statistics. (Use Count). In this area there are tokens to show objects used in the project, a cross-reference, indicating location of this use and also a tool to show existing and unused objects. With this tool you can delete from the project objects that are not in use.

 

Used Object Counter

Entering this area through Run>Tools>UseCount, a first tab that displays the list of all existing objects in the project is reached. In the first column the names of these objects. In the second the number of times the same object is referenced.

 

Cross-Reference

Complete Table

In the tab Cross-Reference the cross-reference table is shown with all project objects, the tables in which these objects are referenced, the objects in these tables, and the location. This information is the same as when you search for only one object, using the lens-shaped search tool at the top of the desktop.

Cross-reference to an object

You can obtain information about the number of times each project object is used, as well as get a list of objects that are not used. Also, from a search by object name you can get to the document or table where it is being used.

To find the objects:

  • Follow one of the following options:

  • From the table that has an occurrence of the object you want to find, select the object. For example, select the Tag you want to find in other parts of the project.

  • The field Find in the toolbar will be automatically filled with the text of the Tag selected.

  • In the field Find in the toolbar, type the type of object (tag), followed by a period, followed by the name of the object (the name of the tag, in this case).

    • As you type in the field, the system selects and shows the first entry of objects in the system. After the first, list all objects of this type.

  • Next to the field Find click the button shown below. The Window Select object shows a list of all types of objects.

  • When you select an object type, a list appears with all the names of existing objects of the same type.

  1. Click Find or from the Select Object window, click OK.

    • Search results will be shown in a list at the bottom of the page.

  2. A double-click on any row in the results list will cause navigation to the location (table, object) described in the row.

  3. To close the results pane, click Find Window at the bottom left of the page.

Unused objects

To monitor object usage:

  1. Go to Run > Tools > UseCount

  • To view objects that are not used, click the UnusedObjects tab and click the Refresh button to get the current list of unused objects.

 

All objects found are unused objects. Select the object you want to remove and click "Remove." You can remove more than one object by selecting multiple objects at once and clicking Remove.

When does it work?

Works when there is an object that is not in use. Unused objects can be tags, devices, or even a report page that is not being used.

When it doesn't work?

It does not work if the desired object is being used, either by something on the screen or by a line of code or script.

This functionality identifies the tags that are being passed as a reference by the . Link?

No, it is very important to pay attention to the tags being passed through the Link property. Because you cannot undo these changes, our software warns you that it is not strongly recommended to delete something in this situation. (see previous image)

If the object is used as an expression, for example the TK. GetObjectValue, will it recognize usage?

No, just like the reference." Link" described above, the expression TK. GetObjectValue needs extra attention. Even if an object is in use, it appears as if it is not in use. That's why we always recommend using the <Object>. GetName () and not the "Object Name" as a typed text.

On this page: