Associated Items are logical Instance objects that do not have a graphical representation. These associated items can then be related to other objects (graphical and non-graphical). Currently there are 3 defined associated item types: Area, Service and Unit.Area is used in the Business Key (tag number). The service is used with the Pipeline. Unit is common to all components.
These associated are added/removed /edited thru the Settings dialog.
The Associated Item Handler is defined on the class that is inserted
These classes are stored under the Property and Dialog Display Lists
These classes in turn point to a class that has the Associated Items array list.Below is an example of a list
The string list contains the associated logical items classes.
If a class wants to display and relate these items, add the custom attribute class: ASSOCIATED_ITEM_LIST_POINTER
Currently there are three associated class:PID_PLANT_AREAPID_PLANT_SERVICE PID_PLANT_UNITThese are located under the PID_PLANT class:
Each one the associated classes has a relationship class name property (RELATIONSHIP_CLASS_NAME). This stores the relationship class name to use. The relationship "joins" the associated item to the inserted component. Currently there are three of these relationship classes:
This add-in contains plant objects that will be used in Tag numbers and general association. These include Plant Area, Service and Unit.
A list of these items is defined in the ASSOCIATED_ITEMS_LIST class. Each item in this list corresponds to a defined class.
The values set here will be used for defaults for inserted components.