Use the following formula to count holes (closed contours) in a drawing. You can count inner contours (those placed inside other closed contours) and outer contours (those that enclose other contours).
To count | Use |
---|---|
Holes in a particular style | OneUpN.HolesCount(StyleName; Yes/No) |
NOTE: The Yes/No argument specifies which closed contours in the specified style (StyleName) are counted: Yes = inner contours; No = outer contours. No is the default and can be omitted. Instead of Yes, you can use also true or 1; instead of No, you can use false or 0.
To print | Use | Example |
---|---|---|
The holes in the Cutting style inside the closed contours in OneUp1. | $OneUp1.HolesCount(Cutting; Yes)$ | 22 |
The outer closed contours in the Cutting style in OneUp1. | $OneUp1.HolesCount()$ | 12 |
See the general rules for how to write formulas and format formula results.