Class AlarmImporter
Namespace: TecnoPack
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll
Provides functionality for importing alarms from Excel files into the project structure.
public static class AlarmImporter
Inheritance
object ← AlarmImporter
Methods
ImportAlarmsInsideOwner(IUANode, string, string)
Imports alarms from an Excel file and attaches them under the specified owner node.
public static void ImportAlarmsInsideOwner(this IUANode owner, string alrmFilePath, string fileName)
Parameters
owner IUANode
The UA node that will own the imported alarms and translations.
alrmFilePath string
The full path to the Excel alarm file.
fileName string
The base filename used for naming subfolders and translation keys.
Remarks
This method creates or clears translation and alarm folders under the provided owner node,
processes each worksheet in the Excel file, validates required columns, and adds DigitalAlarms with localized messages.
Any errors during processing are logged under the category ERROR_CATEGORY.