Configuration

To configure the application you would specify your configuration in the networkBroker.setup() call, like this:

webui.networkBroker.setup({
  currencyCode: 'EUR',
});

Setup options

Possible configuration options are:

Option Description

attachmentMaxFileSize

integer

The maximum file size allowed for new CAD files in bytes

currencyCode

string

The currency label displayed on price values

editDataConfiguration

map

A map with Edit Data Configuration Entries for all input fields.

{
  // ...
  articleName: {
    showInfoIcon: false,
    visible: true,
    rowPriority: 2,
    columnPriority: 0,
  },
  // ...
}

Available fields are:

  • articleExternalDrawingNumber

  • articleExternalPartNumber

  • articleExternalRevisionNumber

  • articleName

  • attachments

  • comment

  • countersinking

  • fixedRotations

  • flipSideUsage

  • materialWithGas

  • mechanicalGrinding

  • multiplicity

  • slideGrinding

  • tapping

  • testReport

  • thickness

  • threading

  • tubeDimX

  • tubeCuttingData

enableAnyRotation

boolean

If set to true, a input field is shown which allows the user to specify an exact rotation on the machine for the part

engravingSelection

boolean

Enables selection of engraving layers on DXF data

fillerElements

array

An array with spacer elements for the input field table, consisting of rowPriority and columnPriority entries to define the position.

[
  // ...
  {
    rowPriority: 2,
    columnPriority: 1,
  },
  // ...
]

headerFunction

function

A Javascript function to set ajax request headers

function myHeaderFunction(req) {
  req.setRequestHeader(
    'X-My-Hdr',
    'Some custom value'
  );
};

loadGltf

boolean

Enables display of 3D data in webui

locale

string

The locale used in webui, currently supported:

de-DE

German

en-US

English (US)

en-GB

English (Great Britain)

fr-FR

French

it-IT

Italian

partCreationConfig

map

A map configuring which parts should be available to be created within webui, without uploading a CAD file.

Option showOnStartup automatically opens the part creation dialog on startup without user interaction.

rectangleCutout

boolean

circleCutout

boolean

sheetMetalProfile

boolean

userDefinedTube

boolean

showOnStartUp

boolean

priceFactors

map

A map that specifies how prices should be displayed:

{
  generalFactor: 1.0,
  taxesFactor: 1.19,
  transparent: false
}
generalFactor

float

All prices are multiplied with this value. Allows to use discount
or surcharge independent from the prices configured in WSi4
taxesFactor

float

The factor that should be used to calculate the price incl. taxes.
For example: 1.19 for including 19% VAT, 1.0 for not including any VAT
transparent

boolean

If `true`, shows surcharge or discount price to the user as extra position.
If false shows only the result, so the user can not see how much discount or surcharge is calculated.

readOnlyModeEnabled

boolean

Starts webui either in read only mode or in full mode.

Read only mode does not show price information, only shows if an imported file can be processed or if errors occured

sheetMetalPartForcing

map

A map with the key tag as string "disabled" or "enabled". For tag "enabled" an additional key type with string "request" or "order" is expected.

Enables users to force a part that is not detected as sheet metal part to be calculated

showMessageMap

map

Allows to customize error messages. To use original messages set to false, else set string to display as error message.

{
  unknownError : false,
  constraintContourInBend : false,
  constraintBendFlangeTooShort : false,
  backendIssueInvalidBend : false,
  backendIssueMultipleOuterContours : false,
  backendIssueNestingFailed : false,
  backendIssueUndetectedFeatures : false,
  constraintBendAreasOverlap : false,
  constraintMaxBendLineNetLengthExceeded : false,
  constraintMaxDimensionExceeded : false,
  constraintMaxSheetThicknessExceeded : false,
  constraintMinContourSizeUndercut : false,
  constraintNoBendDeductionFound : false,
  constraintNoBendDieAssigned : false,
  constraintSheetNotAvailable : false,
  constraintTubeNotAvailable : false,
  constraintProfileNotSupported : false,
  constraintTubeCuttingProcessCompatibility : false,
  constraintTubeNestingNotAvailable : false,
  constraintTubeDetectionNotLicensed : false,
}

showWizard

boolean

Starts a wizard dialog for setting up materials, thickness, etc. after adding new CAD files if true

translationOverwrites

array

Allows to overwrite any text in webui. Documenting any available text in webui would be out of scope of this documentation. Please contact us if you need to overwrite text parts of the application.

updateFunction

function

A Javascript function to periodically call an update to keep any web sessions active

function myUpdateFunction(vm, type) {
  setTimeout(function() {
    vm.postRequest(
      type,
      'status')
    },
    2000
  );
};

Edit Data Configuration Entries

Defines how and where input fields are shown

{
  // ...
  articleName: {
    showInfoIcon: false,
    visible: true,
    rowPriority: 2,
    columnPriority: 0,
  },
  // ...
}
Option Description

showInfoIcon

boolean

Displays a help icon besides the input field

visible

boolean

If false, the input field is hidden

rowPriority

integer

The form row number the input field should be shown

columnPriority

integer

The form column number the input field should be shown