Imported Elements

An imported element derives its attributes (volatile/non-volatile etc., see Properties Editor for Basic Elements – Attributes) from the exported counterpart. Therefore, the Attributes area in the properties editor is deactivated for imported elements.

The properties editor offers a button to synchronize the properties of an imported element with the corresponding exported element in the current project context. However, since imported and exported elements are mapped only via their instance names, synchronization will fail in the following cases:

In these cases, a message window with a description of the failure opens.

When you create an imported element, none of the attributes are set. In the context of a project, an imported element shows the attributes of the exported counterpart in the properties editor and in the graphical representation. This means that the graphical representation of a particular imported element will differ.

ClosedEXAMPLE

A module Module_imported contains an imported global variable. Without project context, the variable is represented as follows.

Module_imported is then added to Project_1, which contains an exported GlobalVariable with the attributes Non-Volatile and Calibration. In the Outline tab of the project editor, the imported variable in the module is displayed with the same overlay icon as the exported one. If the module is opened from the project editor, the graphical representation of GlobalVariable represents the properties of the exported variable, too.

Next, Module_imported is added to Project_2, which contains an exported GlobalVariable with the attribute Virtual. The imported variable in the module is again displayed with the same overlay icon as the exported one, which means that it looks different than in the context of Project_1.

See also

Properties Editor for Basic Elements

Editing the Element Scope

Scope of Elements