Versions Compared

Key

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

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:

Table of Contents
maxLevel3
styleNone


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:

  1. Refresh the UseCount table
  2. Select one 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.



In this section:

Page Tree
root@parent
spacesV10