Set Hinge According to Cabinet Configuration
HingeRule
⚠️ This rule is DEPRECATED. Please use the ParameterConditionRule 🔗 instead.
Notification level: Not applicable
Key | Value |
---|---|
ID | HingeRule |
Translation key | Not applicable |
Behavior
When a cabinet is added to the project, the cabinet is configured with the right hinge depending on inside and outside configuration. User choices, such as front, appliance, inside of a cabinet (inner drawer), will affect which hinge is used by the planner. The aim of this rule is to set the correct hinges according to the cabinet configuration.
Trigger Conditions
When we modify a furniture in the project, the application checks the compatibility and adds directly the associated hinges to the BOM (such as hinges 95°, 110°, 125°, 153°) and the price is updated. These elements are also displayed in the item list.
Overload Parameter
The overload is formatted as a JSON object, in which each property is a rule that defines the mapping between the parameters.
Key name | Type | Default value | Description |
---|---|---|---|
cond | object | – | Mandatory Object containing condition definition. Its key/value structure should be as: ▪️ As many parameter names as needed (subcomponent, front...) that will be mapped to corresponding hinge values. ▪️ For each of them, associated value is an array of the possible values for this parameter. |
values | array | – | Mandatory. Define the ID of the products that needs a corresponding hinge. |
paramName | string | – | Mandatory Name of the product that needs a corresponding hinge. |
hingeList | array | – | Mandatory Define the IDs of the corresponding hinges that have to be added in the BOM according to the impacted product (ID of the impacted product presents in the "values" parameter). |
For example: In this example, the applicative rule will start by looking for a subcomponent with an external ID "9175" or "9176". If one of these external IDs is found, the application adds a hinge to the BOM with the respective external ID "9388".
If not, the applicative rule will look for a parameter named "front" with the respective external ID "9495". If this front is found in the project, the application adds a hinge to the BOM with the respective external ID "9964".
If this condition is still not fulfilled, the applicative rule adds a hinge to the BOM with the respective external ID "9387".
Every time a condition is fulfilled, the hinge applied will be the first hinge which is available (not expired) in the "hinges" list.
{
"algo": [
{
"cond": {
"values": ["9175", "9176"],
"paramName": "subComponent"
},
"hingeList": ["9388"]
},
{
"cond": {
"values": ["9495"],
"paramName": "front"
},
"hingeList": ["9964"]
},
{
"hingeList": ["9387", "13835"]
}
]
}