Formulas for counting objects by style

The formulas that follow count how many objects in a specific style there are in a drawing.

The formulas

For drawing Formula
1up OneUp1.Count(StyleName)
Layout Layout1.Count(StyleName)

Examples

The n0 rounding identifier displays the result without a fractional part.

To count the objects Use Example
In the Cutting style in OneUp1 $OneUp1.Count(); n0$ 230
In the Creasing style in Layout1 $Layout1.Count(Creasing); n0$ 80

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