Combining formula that relate to different drawings

You can create calculations that relate to parts in different drawings. To do it, you create a formula that combines a formula that relates to the first drawing and the formulas that relate to the second, third, and so on drawing(s). You link the expressions by using standard mathematical operations.

Formula pattern

Calculates an expression that relates to the respective 1up drawing.

$CompositeExpression;format$

Examples

TO COMBINE USE YOU WILL SEE
The combined length of all rules in the Cutting and Creasing styles for the respective 1up drawing. $OneUp1[Length(Cutting, mm)+Length(Creasing; mm)]; f4$ The result is displayed in a fractional format with precision 4. Example: 124 1/4
The combined length of all rules in the Cutting and Creasing styles for the layout drawing. $Layout1[Length(Cutting, mm)+Length(Creasing, mm)]; n2$ mm The result is displayed in a numeric format with precision 2 Example: 124.25 mm
The square root of the sum of the squares of parameters A and B in 1Up1, and then add it to the product of the material width in 1Up2 multiplied by the square root of 2. $OneUp1.Sqrt(A*A+B*B)+OneUp2.d()*Sqrt(2); n2$ The formatting is to the second digit after the decimal point.

Notes on Formula Syntax: Space-Separated Style Names; Case Sensitivity; List Separators

USE QUOTATION MARKS TO ENCLOSE SPACE-SEPARATED STYLE NAMES

In a formula, to refer to a style whose name is made up of multiple words separated by spaces, enclose the style name in quotation marks, like this (in red):

$OneUp1.Length("Rillen 3pt", m)$

$OneUp1.Length("Rillen mit Rillkörper", m)$

TYPE MEASUREMENT UNITS AND FORMATTING SYMBOLS IN LOWER CASE

When a formula contains measurement units and/or formatting symbols, type them in lower case, like this (in red):

$LayOUT1.SHEETWidth(mm); n2$

$Layout1.lenght(m)$

KNOW YOUR LIST SEPARATOR

This guide uses semicolon — (;) — to separate formula attributes. If your own system uses a list separator that is different from semicolon — for example, comma (,) — copying a formula from the help guide and then pasting it into EngView will return an error and the formula will not calculate.

So when typing a formula, ensure that the list separator used in the formula is identical with the one set for your system. This means that you may need to edit either (1) your system's list separator setting or (2) the formula you are typing. The examples that follow illustrate how to edit formulas that use semicolons into ones that use colons (in red):

AS PRESENTED IN THE HELP GUIDE. LIST SEPARATOR IS SEMICOLON (;)

$Layout1.Area(m; Plotting); n2$

$Layout1.AreaEx(yes; mm); n2$

$Layout1.SheetHeight(mm); n2$

$Fold3D1.BoundingBoxWidth(Production; mm; yes)$

TYPE FORMULAS LIKE THIS IF YOUR LIST SEPARATOR IS COMMA (,)

$Layout1.Area(m, Plotting), n2$

$Layout1.AreaEx(yes, mm), n2$

$Layout1.SheetHeight(mm), n2$

$Fold3D1.BoundingBoxWidth(Production, mm, yes)$