Scripting

Administration > Setup > Precalculation > Calculation schema > Calculation objects > Calculation Objects Edit > Scripting

Top  Previous  Next
Expand/Collapse Toggles

With scripts you can change various Calculation objects, or make them programmable. In these you can determine the surcharges or designation using MSSQL, VB, Java or Beas-Script or all of them.

 

PATH: Administration > Setup > Precalculation > Calculation schema > Overhead costs

1. "Edit" an entry.

2. Select "Script" in the Reference field.

3. Select script from drop-down.

4. Double-click the yellow_arrowyellow arrow.

Calculation_schema_script_crop

Window pk_scripting_edit.psr

 

Therefore, set up the following in Calculation object

 

Type = Surcharge

Reference = Script

Script = script to be executed. Click the selection icon tool-auswahl to open a list of available scripts. You can view, edit and add scripts here.

 

Note:

Because Precalculation and Post-calculation are very different from each other, no script can be used for both of them. You need to define separate scripts.

(Scripting for Post-calculation is available from beas9.1-004-064-000)

 

Script window

Field

Description

Script Vorkalkulation

Script to be executed at a Precalculation. See Scripting Precalculation.

Script Nachkalkulation

Script to be executed at a post-calculation. See Scripting Post-calculation.

Erweiterte Nachkalkulation

General button (not script related)

If a Precalculation or post-calculation is executed (eg. pricing at posting-in assembly) in the background, not all information is saved and thus there is no access to various information via script.

 

Active: Precalculation or post-calculation saves also all information if started in the background. Thus the stored script can also access BOM information and routing information.

 

The option should only be activated, if you really need to access BOM information and routing information, because it will slow down the computation and need more memory.

See
Scripting Precalculation
Scripting Post-calculation

 

Please consider for batch-calculations, that only fields relevant for calculation are filled: that means drawing number, designation additional identifier and other fields are not filled.


Help URL: https://help.beascloud.com/beas202102/index.html?scripting.htm