Overview
The TrackChanges Unused Objects provides a table listing all unused objects in the solution. This view is not dynamics, it is updated when first loading and via the Refresh button.
Its purpose is to identify components that can be removed to enhance efficiency by eliminating unnecessary configurations.
On this page:
Removing Unused Objects
Limitations, when its not safe to remove
This feature only shows the places the object is using directly, not using by an indirect reference or string manipulation.
Here are some examples where an object is used indirectly:
- Via TagReference using the .Link Property (reason why use the Tag1.GetName() when possible, instead of "Tag1" when setting the value for this property)
- Via AssetPath, using the syntax. Asset("/folder1/tag1")
- Via scripts settings directly TagNames on TrendChart and other objects.
When is generally safe to remove
For most solutions, the indirect reference it's used only for Tags. They display can be used by strings reference using the Client.OpenDiaplay("stirng") method.
Other objects for other modules, like Datasets, Devices, typically are not used as a reference.
Therefore, in general, other objects you can remove directly, and Tags or Displays, as long you aren't used the describe indirect access.
The reason, the "in general" warning was present, is that using the Toolkit, like the TK.GetObjectValue(),
it's possible to indirectly access any object in the application.
Removing Steps
If you want to proceed and remove an object, with the assistance of this table, follow these steps:
- Refresh the UseCount table
- Select one more lines (using shift-click and control-click)
- Press the Remove Selected Lines button.
Unused Objects Table Columns
TrackChanges Unused Objects Table | |
---|---|
Column | Description |
ID | Assigns a unique identifier to each object. |
Module | Links the object to a specific module within the solution. |
ObjectName | Names the object for easy identification. |
In this section: