Formulas counting corners

Use the following formulas to count corners in 1up and layout drawings.

The formula patterns

For Use
1up $OneUpN.NumCorners(StyleName; CornerAngle; Tolerance)$
Layout $LayoutN.NumCorners(StyleName; CornerAngle; Tolerance)$
  1. THE PARAMETERS
  2. StyleName: The style of the objects that form the corners that should be counted.
  3. CornerAngle: The angle of the corners that should be counted.
  4. Tolerance: The variation from the corner angle value set in CornerAngle in which the corners will still qualify for counting. Type a value for the tolerance — for example, 0.25. If you do not want to use a tolerance, type zero (0).
  5. Know your list separator: When typing a formula, make sure you separate its elements with your computer's list separator symbol. Yours may be different from the one used in this guide. Examples (in red):
    With Semicolon With Comma
    $Layout1.Length(Cutting; m; yes); n2$ $Layout1.Length(Cutting, m, yes), n2$

Examples

The examples that follow show you how to write formulas for counting corners by specifying their size. The examples count corners in a OneUp1 drawing and for objects in the Cutting style. The n0 identifier removes the result's fractional part.

Corner Angle Use Example
30 degrees $OneUp1.NumCorners(Cutting; 30); n0$ 3
30 degrees +/- 2 (that is between 28 and 32 degrees) $OneUp1.NumCorners(Cutting; 30; 2); n0$ 7

See the general rules for how to write formulas and format formula results.