Engineering DynProperties: Alarm Groups, Alarm Classes, Alarm Areas
Note, that the single items DynProperties are not addressed as a singular:
- AlarmGroup
- AlarmClass
- AlarmArea
...but within the Collection of:
- AlarmGroups
- AlarmClasses
- AlarmAreas
This VBA example addresses the description fields:
Public Sub Alarm_Groups_Classes_Areas()
For i = 0 To (MyWorkspace.ActiveDocument.AlarmEventGroupCollection.Count - 1)
MyWorkspace.ActiveDocument.DynProperties("AlarmGroups[" & CStr(i) & "].Description") = "This describes Alarm Group No.: " & CStr(i + 1)
Next i
For i = 0 To (MyWorkspace.ActiveDocument.AlarmEventClassCollection.Count - 1)
MyWorkspace.ActiveDocument.DynProperties("AlarmClasses[" & CStr(i) & "].Description") = "This describes Alarm Class No.: " & CStr(i + 1)
Next i
For i = 0 To (MyWorkspace.ActiveDocument.AlarmEventAreaCollection.Count - 1)
MyWorkspace.ActiveDocument.DynProperties("AlarmAreas[" & CStr(i) & "].Description") = "This describes Alarm Area No.:" & CStr(i + 1)
Next i
End Sub
Related Articles
Numerical prefixes of Alarm groups/classes/areas are not correctly sorted in AML filter
Summary Alarm groups/classes/areas in lists in AML filter are sorted as text. But as they starts with the number (property "No.") the order is not correct: 1, 10, 11,..19, 2, 20, 3 etc. When converted to string the numbers 1..9 should have leading ...
FAQ: Is it possible to change DynProperties of the project in Service Engine?
It is not possible to change these properties, as the DynProperties of the thisProject object (also for other many other objects) are not accessible during Service Engine operation. The information is compiled into the project during the "Create ...
Alarm classes assignment gets lost
Description Alarm groups and alarm classes from the global project can also be selected in a reaction matrix of a local project. However, after selection via the "Alarm/event group" or "Alarm/event class" option, the selection is discarded when the ...
Alarm classes assignment gets lost
Summary Global Alarm Classes/Groups in Remas are saved correctly. Was an coding error. during last years changed in the Alarm Class/Group Selection. Remark: New Feature from last year: If Alarm class/Group in global and local Project have the same ...
Alarm areas: wrong value of status variables of linked Alarm Classes when number of alarms exceeds the size of ring buffer
Summary If the number of alarms exceeds the size of the ring buffer, the status variables of linked Classes in Alarm areas are calculated wrong. Description If the number of alarms exceeds the size of the ring buffer, the status variables of linked ...