Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

The  TrackChanges Unused Objects page provides a table listing all unused objects in the solution. This view is not dynamics, dynamic; 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:

Table of Contents
maxLevel3
styleNone


Image Added

Removing Unused Objects

Limitations, when its not safe to remove

This feature only shows the places where the object is using being used directly, not using those used 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

See TrackChanges / CrossReference for example of configuration using objects indirectly. 

Only remove unused objects if you're sure they aren't used indirectly or by external applications. 

Removing steps

If you want to proceed and remove an object , with the assistance of this table, follow these steps:

  1. Refresh the UseCount table
  2. Select one or more lines (using shift-click and control-click)
  3. 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.



Deleting Displays or Referenced Objects

How to delete Displays or Other Objects

  1. Navigate: Go to Displays / List.
  2. Select and Delete: Choose the Display to delete and click the Delete button (X) on the DataGrid toolbar.

 For other objects, follow a similar procedure in their respective configuration tables.

Handling Disabled Delete Button or Error Messages

If the Delete button is disabled or an error message appears, the object is still in use somewhere in the solution.

In this case, it's necessary to locate and remove its references, so you can then delete the object. 

Finding and Removing Object References

  1. Search: Click the Search icon on the main toolbar or open the Find Results panel.
  2. Type and Find: Enter the object name to search for its references. Example: Searching for Display.Logon shows all locations where Logon is used.
  3. Navigate and Remove: Double-click on the references in the Find Results table to navigate and remove them, either by deleting the configuration or replacing the object.

Final Deletion

  • After removing all references, return to the main definition table and delete the object.
  • Alternatively, delete it from the Unused Objects table.

In this section:

Page Tree
root@parent
spacesV10