Zone Safety
ZoneSafetyRule
This rule deals with the distance of an item from electrical components in Bathroom.
Notification level: ℹ
Key | Value |
---|---|
ID | ZoneSafetyRule |
Translation key | zone_safety_rule_title zone_safety_rule_error_message |
Behavior
This rule checks if the distance between an item (like bathtub, shower base, etc.) and an electrical component (like switch, plug, etc.) is more than the chosen minimum distance, to prevent the user from creating a dangerous bathroom.
Trigger Conditions
It is triggered if the distance between an item (like bathtub or shower) and an electrical component (like switch or plug) is less than the chosen minimum distance, and the application recommends modifying its position.
Overload Parameter
The Overload is an array of groups, with each group having the parameters as described below:
Key name | Type | Default value | Description |
---|---|---|---|
minDistanceSide | number | – | This parameter defines the necessary minimum distance between the item and the electrical component. Mandatory. |
minDistanceTop | number | – | This parameter defines the necessary minimum altitude distance between the bottom of the item and the electrical component. Mandatory. |
groupProducts | object | – | This parameter defines the list of items that constitute safety zone and need to be protected from electrical components. Mandatory. |
forbiddenProducts | object | – | This parameter defines the eletrical component that need to be placed outside the safety zone. Mandatory. |
Also in the overloads, the value in the object groupProducts and forbiddenProducts each has the following attributes:
Key name | Type | Default value | Description |
---|---|---|---|
typeIDs | array | [] | This parameter defines the list of closed tags. Optional. |
includedProducts | array | [] | This parameter defines the list of individual product ids of the items that need to be included if its closed tag is not present in typeIDs. Optional. |
excludedProducts | array | [] | This parameter defines the list of individual product ids of the items that need to be exluded even if its closed tag is present in typeIDs. Optional. |
Sample
[
{
"minDistanceSide":600,
"minDistanceTop":2250,
"groupProducts":{
"typeIDs":[
57
],
"includedProducts":[
],
"excludedProducts":[
]
},
"forbiddenProducts":{
"typeIDs":[
116
],
"includedProducts":[
"2101"
],
"excludedProducts":[
"2784"
]
}
}
]
Illustration
The distance between a bathtub or a shower and an electrical component is less than the minimum distance, so the rule is triggered and user is informed to change the position of the bathtub or the shower.
Once the user has moved the bathtub or the shower to atleast 600 mm from the electrical component or the altitude (height from the bottom of bathtub or shower) of the electrical component to atleast 2250 (the overload value in this example); after clicking Refresh the check on the Help center, the design is error free.