The formulas
Extracts From |
Formula |
1up |
OneUpN.Area(units; StyleName) |
Layout |
LayoutN.Area(units; StyleName) |
- THE PARAMETERS
- Units: The measurement units in which EngView
will compute the result. To use the default
units, leave the argument empty.
- StyleName: The style of the objects that form
closed contours. If no style is specified, EngView
applies the Cutting style.
- 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
extracting the areas formed by closed contours and set formatting
for the results. The examples refer to areas in a 1up drawing
and in a Layout1 predefined
area.
To print the area |
Extracts From |
In style |
Units |
Use |
Example |
A closed contour |
OneUp1 |
Cutting, incl. child styles |
default |
$OneUp1.Area()$ |
0.19 |
A closed contour |
OneUp1 |
Cutting, incl. child styles |
sq. cm. |
$OneUp1.Area(cm)$ sq. cm. |
1876.64 sq. cm. |
Closed contour |
Layout1 |
Cutting, incl. child styles |
sq. m. |
$Layout1.Area(m); n3$ sq. m. |
0.375 sq. m. |
Area defined by objects |
Layout1 |
Plotting |
Default |
$Layout1.Area( ; Plotting)$ |
0.39 |
Area defined by objects |
Layout1 |
Plotting |
Sq. m. |
$Layout1.Area(cm; Plotting)$ sq. cm. |
3875.43 sq. cm. |
The formulas
Extracts From |
Formula |
1up |
OneUpN.AreaEx(excludeHoles; Units; StyleName) |
Layout |
LayoutN.AreaEx(excludeHoles; Units; StyleName) |
- THE PARAMETERS
- excludeHoles Controls whether EngView
should exclude the combined area of closed contours (holes).
Values: Yes = excluded; No =
included (identical with the result of the Area()
function). Instead of Yes, you can use also
true or 1; instead of No,
you can use false or 0.
- Units: The measurement units in which EngView
will compute the result. To use the default
units, leave the argument empty.
- StyleName: The style of the objects that form
closed contours. If no style is specified, the Cutting
style is used.
- 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
extracting the areas formed by closed contours excluding holes
areas and set formatting for the results. The examples refer to
areas in a 1up drawing and in a Layout1 predefined
area.
To print the area of |
Extracts From |
In style |
Units |
Use |
Example |
A closed contour |
OneUp1 |
Cutting, incl. child styles |
Default |
$OneUp1.AreaEx(yes)$ |
0.16 |
Closed contour |
OneUp1 |
Cutting, incl. child styles |
Sq. cm. |
$OneUp1.AreaEx(yes; cm)$ sq. cm. |
1876.64 sq. cm. |
Area defined by objects |
Layout1 |
Plotting |
Default |
$Layout1.AreaEx(yes; ; Plotting)$ |
0.33 |
Area defined by objects |
Layout1 |
Plotting |
Sq. cm. |
$Layout1.AreaEx(yes; cm; Plotting)$ sq. cm. |
3286.09 sq. cm. |