Skip to main content
Version: Released

Application Distribution Parameters - Storage Configurator

Β 

Each application distribution must define its own settings in a JSON formatted object. This documentation describes the supported settings of the Storage Configurator application that should be provided for any application distribution linked to the Storage Configurator application.

You can find here πŸ”— a complete JSON sample example of the Storage Configurator application distribution settings.

❗ The JSON object cannot contain any comment.

Supported settings​

For...See...
Language, Units and Currencylocales, currencies
PricingpriceTopAssembly, externalPrice
WidgetsproductSheet
CatalogcatalogData
Panel optionseditPanel
SearchsortStringFilter, sortNumericFilter, aggregationParameters
2D plansplans2d

Top structure​

The application distribution settings object is defined with the following attributes:

AttributeTypeDescription
localesarray of objectsA list of supported locales in the application distribution
currenciesarray of objectsA list of supported currencies in the application distribution
pricingobjectApplication distribution settings related to the pricing
catalogDataobjectApplication distribution settings related to the catalog entries
editPanelobjectApplication distribution settings related to the edit panel
searchobjectApplication distribution settings related to the search
plans2dobjectApplication distribution settings related to the 2d plans
widgetsobjectApplication distribution settings to configure the default widgets
autoFillersobjectApplication distribution settings to configure the automatic fillers

The only mandatory attributes are : locales

locales​

StatusTypeDefault value
Mandatoryarray of locale objects[]

This parameter contains the list of supported locales for the Application Distribution. It must contain at least one element.

A locale object is defined as follow:

AttributeTypeMandatoryDescription
isDefaultbooleanNOIf true, tells the application to use this locale by default. It is possible to launch the planner with a specific locale thanks to the "ln" URL parameter πŸ”—
namestringYESA combination of a mandatory and an optional element joined in a string and separated by a "-" (dash).
- MANDATORY: 2-letter code of a language, following πŸ”— ISO 639-1.
- OPTIONAL: 2-letter code of a region / country, following πŸ”— ISO 3166-1.
Examples: "da-DK" for "Danish-Danemark" or "fr-FR" for "French-France" or "PT-pt" for "Poruguese-Portugal".
fallbackstringNOUsed for translations only. If a translation key is not found for the given locale, the translation system falls back to this locale instead. If not specified, falls back to English.
unitSystemstringYESDefines which unit system is used in the application. Can be metrics or imperial
lengthUnitstringYESDefines the base unit for length in the application. Can be millimeter, centimeter, decimeter or meter (for unitSystem = metrics) and inch, foot or yard (for uniSystem = imperial)
lengthPrecisionintegerYES if uniSystem is metricsThe various lengths displayed in the application will be displayed with lengthPrecision decimal digits
lengthFractionPrecisionintegerYES if uniSystem is imperialMinimal fraction of lengthUnit. Valid values are: 8, 16 or 32

Example 1 – Array of three locales in metrics

{
"locales":
[
{
"name": "fr-BE",
"unitSystem": "metrics",
"lengthUnit": "millimeter",
"lengthPrecision": 0,
"fallback": "en"
},
{
"name": "nl-BE",
"unitSystem": "metrics",
"lengthUnit": "millimeter",
"lengthPrecision": 0,
"fallback": "en"
},
{
"name": "de-DE",
"unitSystem": "metrics",
"lengthUnit": "millimeter",
"lengthPrecision": 0,
"fallback": "en"
}
]
}

Example 2 – Array of two locales in imperial

{
"locales":
[
{
"name": "en-US",
"unitSystem": "imperial",
"lengthUnit": "foot",
"lengthPrecision": 0,
"lengthFractionPrecision": 16,
"fallback": "en"
},
{
"name": "es-US",
"unitSystem": "imperial",
"lengthUnit": "foot",
"lengthPrecision": 0,
"lengthFractionPrecision": 16,
"fallback": "en"
}
]
}

currencies​

StatusTypeDefault value
Optionalarray of currency objects[]

This parameter contains a list of specific currency configurations for the Application Distribution. Each object in this array is used to configure how a particular currency is configured for its display in the application.

When the application starts, it determines which currency to use (see currency URL param πŸ”—). If it is in this list of currencies, it uses the associated object to configure the currency display. If the currency is not in the currencies list, it fallsback on the locale-currency configuration (see GET ​/applications​/{id}​/currencylocales​/{locale} πŸ”—).

A currency object is defined as follow:

AttributeTypeMandatoryDescription
currencyCodestringYESA 3 letters string following πŸ”— ISO 4217
currencyNamestringYESThe currency name
numberSystemstringYES"latin" or "arab". Defines which alphabet to use to display the digits
currencySymbolstringYESThe symbol to display for the currency
currencySignRighthandbooleanYESDefines if the currency symbol should be on the right side of the price number. true to display the symbol on the right side
currencySpacingbooleanYESDefines if there should be a space between the price number and the currency symbol. true to display a spacing
decimalSeparatorstringYESThe separator string to separate the decimal digits of the price
thousandSeparatorstringYESThe separator string to separate the thousand groups
noDecimalStringstringYESThe string to display when there is no decimal digits

Example 1 – Array of two currencies

{
"currencies": [
{
"currencyCode": "GBP",
"currencyName": "British Pound",
"numberSystem": "latin",
"currencySymbol": "Β£",
"currencySignRighthand": false,
"currencySpacing": false,
"decimalSeparator": ".",
"thousandSeparator": ",",
"noDecimalString": ""
},
{
"currencyCode": "EUR",
"currencyName": "euro",
"numberSystem": "latin",
"currencySymbol": "€",
"currencySignRighthand": true,
"currencySpacing": true,
"decimalSeparator": ",",
"thousandSeparator": " ",
"noDecimalString": ""
}
]
}

pricing​

The pricing attribute groups settings related to pricing configuration.

priceTopAssembly​

StatusTypeDefault value
Optionalbooleanfalse

Indicates whether the assembly product prices should include the price of the top assembly or not. This only affects assembly products (i.e. BMA products); Single component products (i.e. BM3 products) are always priced with their own price.

externalPrice​

StatusTypeDefault value
Optionalbooleanfalse

Set to true if you want to use an external module to compute the Storage Configurator price. By choosing this option, after each BOM computation, the configurator sends it via an iframe message πŸ”— and waits for a reply that must contain the Storage Configurator price to display in the UI.

Note: this option is not compatible with the finance setting below. Using both will result in undefined behaviors in the planner.

catalogData​

The catalogData is used to configure the different catalog entries data displayed in the Storage configurator.

design​

StatusTypeDefault value
Optionalarray of catalog object[]

Each item in design is an object which describes the information of the catalog. It contains the following attributes:

icon

StatusTypeDefault value
Mandatorystring""

The name of the SVG icon to use for this catalog. Supported values are listed below.

translationKey

StatusTypeDefault value
Mandatorystring""

The translation key suffix for the catalog entry name. The configurator builds the full translation key like follows (where {key_suffix} is replaced by the provided translationKey)

full key = catalog_entry.design_state.{key_suffix}

closedTags

StatusTypeDefault value
Mandatoryarray of number[]

List of closed tag IDs that are searched when the user clicks on catalog button. Search results are any product that has either of these closed tags.

freeTags

StatusTypeDefault value
Mandatoryarray of string[]

List of free tag IDs that are searched when the user clicks on catalog button. Search results are any product that has either of these free tags.

productRank

StatusTypeDefault value
Optionalbooleanfalse

Defines if the searchScore must be used when sorting results of the search.

About the Icons​

Each catalog entry is illustrated by an icon that you can choos from the predefined list below:

Picto nameIcon
accessories-closetaccessories-closet
accessoriesaccessories
appliancesappliances
closet-structurecloset-structure
coveringscoverings
decodeco
diningdining
doors-closetdoors-closet
doorsdoors
flooringflooring
frontfront
furniture-altfurniture-alt
furniturefurniture
handleshandles
objectsobjects
openingsopenings
worktopworktop

Example

"catalogData": {
"design": [
{
"icon": "closet-structure",
"freeTags": [],
"closedTags": [
275,
518
],
"productRank": true,
"translationKey": "box"
},
{
"icon": "doors",
"freeTags": [],
"closedTags": [
536
],
"productRank": true,
"translationKey": "door"
},
{
"icon": "accessories",
"freeTags": [],
"closedTags": [
539,
192,
546
],
"productRank": true,
"translationKey": "interior_accessories"
}
]
}

The above example produces the following catalog entries: Storage Configurator Catalog Data

editPanel​

The editPanel attribute groups settings related to product panel configuration.

groups​

StatusTypeDefault value
Mandatoryarray of parameters object[]

The groups is used to define the groups of the parameters displayed in the product panel. It contains the following attributes:

parameters

StatusTypeDefault value
Mandatoryarray of string[]

The array contains the list of parameters which will be displayed as a group. The parameters of the product will be shown in the panel as the same order defined in the array.

translationKey

StatusTypeDefault value
Mandatorystring""

The translation key is used to translate the name of the group displayed as the title in the panel.

The product panel will display all the visible and editable parameters of a product selected. If a parameter is visible and editable but NOT defined in any array of parameters, it will be shown in the group "Other". It means that you need to have a translationKey as edit_panel.groups.other for displaying any visible and editable parameters which are not belongs to any groups.

Exemple

"editPanel": {
"groups": [
{
"parameters": [
"width",
"depth",
"height"
],
"translationKey": "edit_panel.groups.dimensions"
},
{
"parameters": [
"leftCoverPanel",
"rightCoverPanel",
"topCoverPanel"
],
"translationKey": "edit_panel.groups.cover_panels"
},
{
"parameters": [
"autoLeftFillerOption",
"autoRightFillerOption",
"autoTopFillerOption"
],
"translationKey": "edit_panel.groups.fillers"
}
]
}

The above example produces the following product panel: Storage Configurator Product Panel

The search attribute groups settings related to the search configuration.

aggregationParameters​

StatusTypeDefault value
Optionalarray of string[]

These aggregation parameters are used in the product browser, replace catalog and the search bar.

For a parameter to be used as a filter, it must be set as a searchable parameter on the product(s) and defined in the API and in application distribution parameters in 3dcloud.

➑️ See the Searchable Parameters πŸ”— for a further explanation of how to set the parameters.

{
"aggregationParameters": [
"commercialDepth",
"commercialWidth"
]
}

sortStringFilter​

StatusTypeDefault value
Optionalstring"desc"

sortStringFilter defines the sorting order of the string type filters in the Catalog Browser. If the value of the sortStringFilter is asc it will be sorted in alphabetical order. And If the value is desc, it will be sorted in reverse alphabetical order.

The default value for the key is desc. If no value is provided for the key, by default the filter will be sorted in the reverse alphabetical order.

{
"sortStringFilter": "desc",
}

sortNumericFilter​

StatusTypeDefault value
Optionalstring"desc"

sortNumericFilter defines the sorting order of the number type filters in the Catalog Browser. If the value of the sortNumericFilter is asc it will be sorted in ascending order. And If the value is desc, it will be sorted in descending order.

The default value for the key is desc. If no value is provided for the key, by default the filter will be sorted in the descending order.

{
"sortNumericFilter": "desc"
}

plans2d​

The plans2d attribute groups settings related to the generation of 2d plans.

➑️ Refer to 2D Plan Information πŸ”—

version​

StatusTypeDefault value
Mandatorynumber–

The 2d plans configuration version. The current last version is 2.

showInfoGrid​

StatusTypeDefault value
Optionalnumber–

To apply Information Grid on the 2DPlans generated.

configs​

StatusTypeDefault value
Optionalarray of config objects[]

The list of 2D plans configurations. Each config object will result in 1 generated plan. You can generate several 2D plans of the same view with different visible elements on each view.

Possible parameters for a configuration object are:

NameMandatoryTypePossible ValuesDescription
typePlanyesstring"Top"
"Face"
"TopGround"
"TopWall"
the type of plan to compute
showFurniture–num0 or 1draws the furniture. (default value: 1)
showFurnitureDimension–num0 or 1draws the furniture dimensions. (default value: 0)
showDepthDimension–num0 or 1draws the furniture depth dimensions. (default value: 0)
showWallDimension–num0 or 1draws the wall and bay dimensions. (default value: 0)
showNumbering–num0 or 1draws the furniture numbers. (default value: 0)
showFronts–num0 or 1draws the front and handles of the products (default value: 1)
tagsToShow–Array<num>[...]a list of product tags to show in the 2D Plans
tagsToHide–Array<num>[...]a list of product tags to hide in the 2D Plans
tagsToMeasure–Array<num>[...]a list of product tags to measure in the 2D Plans
roomsOnly–num0 or 1draws a plan for each room that contains products (default value: 1)
resol–num1 - 1000Resolution in PPI. (default value: 300)
scale–num0 or 1Scale of the plan when printed at the current resol (20 means 1/20 scale) (default value: 20)
imageWidth–num0 or 1Width of the 2D plans in pixels
imageHeight–num0 or 1Height of the 2D plans in pixels

Example​

"plans2d": {
"version": 2,
"showInfoGrid": 0,
"configs": [
{
"resol": 300,
"scale": 20,
"typePlan": "Top",
"roomsOnly": 1,
"showFronts": 1,
"imageWidth": 2244,
"imageHeight": 1772,
"showFurniture": 1,
"showNumbering": 1,
"showWallDimension": 1,
"showFurnitureDimension": 1
}
]
},

widgets​

The widgets attribute is used to configure the use of default widgets in the configurator. It contains a key for each supported widget in the configurator.

productSheet​

StatusTypeDefault value
Optionalobjectfalse

Defines the configuration of the Product Sheet πŸ”— default widget that is used for displaying product information.

It supports the following keys/values:

dimensions

StatusTypeDefault value
Optionalbooleantrue

Defines if the dimensions of the product are displayed or not.

price

StatusTypeDefault value
Optionalbooleantrue

Defines if the price of the product is displayed or not.

Example where the dimensions and price are disabled:

"productSheet": {
"price": true,
"dimensions": false
}

autoFillers​

The autoFillers attribute is used to configure the use of automatic fillers in the configurator. Below are the supported keys for this object.

baseFillerIds​

StatusTypeDefault value
Optionalarray of strings[]

Defines the base filler ID that is inserted by the configurator when adding an automatic base filler (i.e. filler touching the floor). The setting must be defined as an array of IDs, and the first available filler (at the time of configurator startup) from this list will be used by the configurator.

topFillerIds​

StatusTypeDefault value
Optionalarray of strings[]

Defines the top filler ID that is inserted by the configurator when adding an automatic top filler (i.e. filler not touching the floor). The setting must be defined as an array of IDs, and the first available filler (at the time of configurator startup) from this list will be used by the configurator.

minWidth​

StatusTypeDefault value
Optionalnumber25

Defines the minimum dimension of the fillers. For base fillers, it is the horizontal width (from a box to the wall). For top fillers, it is the verical width (from the top of the box to the ceiling).

maxWidth​

StatusTypeDefault value
Optionalnumber200

Defines the minimum dimension of the fillers. For base fillers, it is the horizontal width (from a box to the wall). For top fillers, it is the verical width (from the top of the box to the ceiling).