Formulas extracting length
The following formulas extract lengths in 1up and layout drawings.
Formula pattern
For |
Use |
1up |
OneUpN.Length(StyleName; units; Yes/No) |
Layout |
LayoutN.Length(StyleName; units; Yes/No) |
- SYNTAX NOTE
- StyleName: The style of the objects
whose length you want to extract. To extract the total length
of all objects in all styles, leave the argument empty.
- Units: The measurement units
in which EngView
will compute the result. To use the default
units, leave the argument empty.
- No/Yes Controls whether the combined
length of all child styles the selected style should be included.
Yes = added; No = not added. For
example, the formula $Length(Creasing; m; yes)$
returns the combined lengths of all objects in the Creasing
style and its child styles. Instead of Yes, you
can use also true or 1; instead
of No, you can use false or 0.
No is the default, which means that you can omit
it if you need it in an expression.
Examples
See examples of how to write formulas for extracting lengths and set
formatting for the results. All the formulas extracts the lengths of objects
in the Cutting style.
To print the length of |
Use |
Example |
All objects in Layout1. |
$Layout1.Length(m)$ m. |
4.50 m. |
All objects in all styles in OneUp2. |
$OneUp2.Length(); n3$ mm. |
3600.307 mm. |
All objects in all styles in Layout1. |
$Layout1.Length(cm); n0$ cm. |
320 cm. |
See the general
rules for how to write formulas and format formula results.