Use the following formulas to count the number of closed contours in a drawing.
TO COUNT
USE
CLOSED CONTOURS IN A PARTICULAR STYLE
$OneUpN.HolesCount(StyleName; Yes/No)$
NOTES
TO COUNT
USE
The number of closed contours (holes) in the Cutting style or any of its child styles in the 1up named OneUp1.
$OneUp1.HolesCount()$
The number of closed contours (holes) in the Cutting style in the 1up named OneUp1.
$OneUp1.HolesCount(Cutting)$
The number of closed contours (holes) in the Cutting style outside the closed contours in a drawing named OneUp1
$OneUp1.HolesCount(Cutting; false)$
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 Prinect 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)$