LayerInUse

(VTScada Layer module. Obtain LayerRoot using the following script-only statement: )

    LayerRoot = \System.GetLoadedAppInstance(GetGUID(0, \LocalGUID));
Description: Returns true if the application is running or if there are any applications that depend on this layer, running or not.
Returns: Boolean
Usage: Script Only.
Function Groups: Configuration Management
Related to:
Format: LayerRoot.LayerInUse()
Parameters: None
Comments: If this function returns FALSE, the layer is not in use and may be removed from the VAM.

Examples: