When you copy command group with an action with invalid interlocking conditions - the new group disappears after project reopen

When you copy command group with an action with invalid interlocking conditions - the new group disappears after project reopen

Summary

In Command processing module you can copy actions from one command group to another. When you copy an action also all linked interlocking conditions are copied. But when in the aim group there are no variables for pasted conditions then:
- the action is copied without any warning that action's interlocking uses parameter (e.g. X01) which does not exists in the group. Such project can also be compiled without error/warning.
- but when you reopen project in Editor --> the whole command group is disappearing.

The same happens when you copy not actions but single (or multi-selected) interlocking conditions.

Description

In Command processing module you can copy actions from one command group to another. When you copy an action also all linked interlocking conditions are copied. But when in the aim group there are no variables for pasted conditions then:
- the action is copied without any warning that action's interlocking uses parameter (e.g. X01) which does not exists in the group. Such project can also be compiled without error/warning.
- but when you reopen project in Editor --> the whole command group is disappearing.

The same happens when you copy not actions but single (or multi-selected) interlocking conditions.

Solution

Now, copying of interlocking conditions is only possible if all variables are defined, e.g. when condition formula uses parameter X02 than variable for X02 must be defined in the group; but it must not necessarily be the same variable as in the source command group.
Copying of an action into an other command group is not possible if it contains interlocking conditions that would use variables that do not exists. The error mesaage is written in Output window.

Information




Issue Number: 28702
Fixed on Date: 27.11.2013
Versions: 7.20 0 BUILD 17768