Find Outdated Functions

The command Find Outdated Functions finds no longer supported methods, attributes, and functions in the source code of all methods. You then have to take the appropriate measures to fix the problem, for example replace the outdated functions with the functions that replaced them.

The command Find Outdated Functions only shows those methods, attributes, and functions for which we offer a direct equivalent.

Proceed as follows:

  • Click Find Outdated Functions in your simulation model.

  • Plant Simulation shows the outdated functions in the window Outdated Methods, Attributes and Functions. Double-click the name of the outdated function, which you would like to replace, in the window.

  • Select the function that is going to replace the outdated function in the dialog Find and Replace.

    If more than one function can replace the outdated function, select the respective radio button.

    If the outdated function does not have a direct equivalent, the text box Replace with remains empty.

    What's New then shows which new function replaced the outdated function.

  • Click Replace to only replace this occurrence in the source code of all methods in the model.

  • Click Replace All to replace all occurrences in the source code of all methods in the model.

  • Plant Simulation replaces the outdated function with the new function.

  • Run the simulation and check if the source code still works as intended.

The command also finds observers of outdated attributes, for example observers of ChannelID. For such observers Plant Simulation opens a window containing a list of all outdated attributes for the observers. When you double-click an entry in the list, Plant Simulation opens the dialog Edit Observers for the observed object, as long as only a single observed object exists. If several observed objects exist, Plant Simulation opens a window with a list of all observed objects. To open the observer window for the respective object, double-click the respective entry in the list.

Related Topics

Outdated Names in 2D

Outdated Names in 3D