Overview
It provides a table of solution unused objects, updated through the Refresh button. Its purpose is to identify and list system components or objects that can be considered for removal, thereby enhancing efficiency by eliminating redundant or outdated configurations. The functionality extends to updating the list of unused objects and deleting them. It also includes an additional verification step for indirect usage through reference tags, script expressions, or reflection methods to prevent the accidental deletion of necessary components. This feature is applicable in scenarios focused on system cleanup, optimization, and maintenance, where identifying unused objects is critical for resource management. It does not need any configuration; to use it, navigate to Track Changes → Unused Objects.
On this page:
Unused Objects management
The Unused Objects feature allows users to identify and remove unused objects from their solution. The Refresh button located on the Unused Objects tab displays all the objects that are unused. Users can select the object they want to remove and click Remove. Multiple objects can be removed at once by selecting multiple objects and clicking Remove. It is important to note that this feature will only work if an object is not in use. If an object is being used, either on the screen or by a line of code or script, this feature will not work. Additionally, it is highly recommended to pay attention to tags that are being passed by the .Link property and to use the <Object>.GetName()
method rather than the object name as a typed text in expressions like TK.GetObjectValue
.
Identifying
Access the Track Changes → Unused Objects tab and click the Refresh button to get the current unused object list.
Removing Unused Objects
All the objects found are unused. 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 It Works and Doesn't
The Unused Objects feature only works for objects that are not in use. If an object is being used by something on the screen or by a line of code or script, this feature will not work. It is important to note that the functionality does not identify tags being passed as a reference by the .Link property. Therefore, it is highly recommended to use caution when removing objects that are being passed by the .Link property, as this can have unintended consequences. Additionally, the feature does not recognize objects that are used as expressions such as TK.GetObjectValue
. To ensure proper identification, it is recommended to use the <Object>.GetName()
method rather than the object name as a typed text.
Unused Objects Table Columns
Property | 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: