Create the Missing Objects Required by a Library Script

If one or multiple linked objects required by a library script are missing from the project, the following will occur:

  • When you select the library scripts block, the script displays in red (object missing) or yellow (object of incorrect type) in the list.
  • While attempting to import the library script into Application View, the following message displays: Please verify the status of linked objects of the imported file.

In this case you must check the script library and create any missing objects required to run this script properly.

  1. Select the scripts block. For example:
    Project > System Settings > Libraries > L4-Project > [..] > [scripting library] > [scripts block]
    .
  1. In the Script Editor tab, open the Scripts expander.
  • The list of the scripts in this library displays. Scripts with linked objects display in green if all the objects are correct, or in yellow/red if there is a problem with the linked objects.
  1. Select the script whose missing/incorrect objects you want to repair.
  1. Open the Linked Objects expander.
  • A list of the objects linked to this script displays. The Status field indicates any objects that are missing in the current project or of the incorrect type.
  1. In System Browser, create any linked objects with status = Exists with wrong type or Not found:
    a. Click Create for the object in this state.
    b. In the dialog box, select the location where the node is to be created.
    c. Click OK.
  1. Fix any invalid links that occurred because of virtual data point type mismatch:
    a. Create the new virtual data point.
    b. Select the invalid linked object.
    c. Click Delete.
    d.
    Drag the new virtual data point into the Linked Objects expander.
    e. Repeat the previous steps for any invalid links in the library.