forked from openscd/open-scd
-
Notifications
You must be signed in to change notification settings - Fork 4
Enumeration EnumVal
Davood Sooran edited this page Apr 2, 2024
·
2 revisions
Adding EnumVal:
To add a new EnumVal to an existing EnumType in OpenSCD, follow these steps:
- Navigate to the
EnumTypeto which you want to add anEnumVal, then open the Edit EnumType wizard. - Click on the ENUM VALUE button located within the wizard.
Settings:
- ord*: This attribute must be unique within the EnumType.
- desc: User-defined description field.
- value*: The enumeration value specified as a string.
Edit EnumVal
To modify an existing EnumVal element, follow these steps:
- Navigate to the
EnumTypethat contains theEnumValyou want to edit. - Open the Edit EnumType page and click on the
EnumValyou want to edit to access the Edit Enum wizard.
Settings:
-
ord*: This attribute must be unique within the
EnumType. - desc: User-defined description field.
- value*: The enumeration value specified as a string.
Example:
<EnumVal ord="1">on</EnumVal>
Remove EnumVal
Removing EnumVal from an EnumType may be necessary at times to align with vendor-specific data models. For instance, in the BehaviorModeKind enumeration, it is common to include only "on," "test," and "off" values, omitting "test/blocked" and "on-blocked" options.
- Open the
EnumValyou want to remove in the Edit EnumVal wizard. - Click on the Remove button.