Activity context

The components in an Activity VRC are only accessible for the software engineer to which the activity is assigned.

Sometimes, it is necessary to use components developed by another software engineer.

For example:

  • In your UI script, you want to use a new DLL developed by another software engineer.
  • You want to open components from another software engineer through the Open Declaration command in the Script Editor.

To access software components developed by another software engineer, put the activity that contains the desired components in the activity context of your own activity.

To add an activity to the activity context of your own activity:

  1. Right-click your activity in the Activity Explorer, and select Properties.
  2. In the left pane in the properties dialog box, select LN Studio Activity Information.
  3. Click the Context tab.
  4. Click Add and select the project to which the desired activity belongs.
  5. Click Add Activity and select the desired activity from the list.
  6. Click OK.
Note: When you add multiple activities, use the Up and Down buttons to change the order in which the activity VRCs are searched at runtime. The activity at the top of the list is searched immediately after your own activity. Subsequently, the second activity in the list is searched, and so on.

To delete a project or an activity from the activity context, right-click the project or activity and select Delete.

Example- search order

Activity 1 has activity 4 in its activity context.

The search order for activity 1 is as follows:

  1. Activity 1 private VRC (only if SCM is active)
  2. Activity 1 activity VRC
  3. Activity 4 activity VRC
  4. Project VRC
  5. Lower VRCs

This diagram shows an example:

The context of your activity can change. The context changes, for example, in these situations:

  • You add another activity to the context of your activity.
  • A new component is added in an activity that is in the context of your activity.
  • An existing component is modified and compiled in an activity that is in the context of your activity.

If your activity context changes, complete the following steps to incorporate the changes in your activity:

  1. Select Project > Clean. The Clean dialog box starts.
  2. Use this dialog box to invoke a full build for your activity. All previous build results are discarded.
    Note: Ensure the Build Automatically option in the Project menu is selected.
  3. Recover your activity.

    See Recovering an activity.