Combining and Uncombining Levels
The NetLinx functions COMBINE_LEVELS and UNCOMBINE_LEVELS are used within events and mainline code to dynamically change what levels are connected to each other.
It is recommended that a Virtual DEVLEV set be used as the first DEVLEV set in the COMBINE_LEVELS function.
The format for COMBINE_LEVELS and UNCOMBINE_LEVELS is:
DEVLEV structures defined within the COMBINE_LEVELS are either individual DEVLEV structures or one dimension of a DEVLEV array. Any reference to the levels is handled through the first device in the list.
The following example code illustrates how to dynamically combine and uncombine levels utilizing the COMBINE_LEVELS and UNCOMBINE_LEVELS keywords.