Skip to main content
Version: Released

Filler Rule

Apply Rule

FillerRule

Allows a filler product to inherit parameter values from its parent cabinet. This rule can be used instead of FillerStyleRule to define the style (and other params) that should be applied to the filler.

❗ If both FillerStyleRule and FillerRule are instanciated, FillerRule will automatically be selected. /!\ Both rules cannot be used at the same time as they impact the way automatic fillers are defined.

Notification level: Not applicable

KeyValue
IDFillerRule
Translation keyNot applicable

Behavior

For automatically generated fillers, this rule applies to the fillers the parameter values inherited from their parent cabinet. Those parameters are defined in the "inheritedParameters" list of the rule. This way, when changing the value of any inherited parameter, the same value is automatically applied to the parameter of the connected filler (if configured).

For example, if the inheritedParameters include front and outerBoxColor and the user changes the front to 15764, then the filler's front parameter will automatically change to 15764 as well. The same goes for outerBoxColor. However, if the filler does not have the parameter outerBoxColor, changing the value of its parent cabinet will not change anything on the filler.

A parameter defined in "inheritedParameters" must exist and allow the same range of values on both products, the parent cabinet and the filler product, for the rule to automatically apply the new value on the connected filler.

This rule does not impact manual filler pieces.


Trigger Conditions

The rule is triggered either when:

  • A value of one of the parameters has changed.
  • An automatic filler is created.

Overload Parameters

The overload is formatted as a JSON object, in which each property is a rule that defines the mapping between the parameters.

For each element in the JSON object, it contains the name of the rule and the name of parameters; these parameters are made of an array of the possible values.

When a value change is requested on a parameter inside this mapping, the other parameter specified for a furniture will change in order to respect this mapping.

Key nameTypeDefault valueDescription
inheritedParametersArray of product parameters namesMandatory.
Array containing the names of the parameters that should be inherited by the filler
defaultBaseFillerexternal ID / Array of external IDsMandatory.
Define the id of the filler product for automatically generated filler on base cabinet. The parameter "fillerPiece" of this product will be the value updated by the FillerRule
"Base cabinet" is defined as a furniture:
▪️ With a closed tag ID not in the list: [ 144, 216, 154 ] / [ "HighCabinets", "WallCabinets", "Hoods"]
▪️ Or with closed tag ID 271 / "CornerCabinets" and altitude of the furniture is equal to zero.
defaultHighFillerexternal ID / Array of external IDsMandatory.
Same as above for high cabinets. "High cabinet" is defined as a furniture with closed tag ID 144 / "HighCabinets"
defaultWallFillerexternal ID / Array of external IDsMandatory.
Same as above for wall cabinets. "Wall cabinet" is defined as a furniture:
▪️ With closed tag ID in the list [ 216, 154] / ["Wall cabinets", "Hoods"]
▪️ Or with closed tag ID 271 / "CornerCabinets" and altitude of the furniture is greater than zero.
defaultHalfHeightFillerexternal ID / Array of external IDsOptional.
Same as above for half height cabinets. "Half height cabinet" is defined as a furniture with closed tag ID 576 / "HalfHeightCabinets"
minWidthinteger25Optional. Value cannot be equal to 0.
Minimum width in millimeters of an automatic filler. If there is a gap under this length, filler will not be created.
maxWidthinteger199Optional.
Maximum width in millimeters of an automatic filler. If there is a gap over this length, filler will not be created.
defaultWidthinteger50Optional.
The default width of automatic fillers. The value is used when inserting a cabinet near a wall: a filler with this width is inserted between the wall and the cabinet, if possible.

For example:

{
"inheritedParameters": [
"outerBoxColor",
"styleFront",
"option_LineN"
],,
"defaultBaseFiller": ["14103"],
"defaultHighFiller": ["14104"],
"defaultWallFiller": ["14107"],
"defaultHalfHeightFiller":["14106"],
"minWidth": 25,
"maxWidth": 400,
"defaultWidth": 50
}