Functions extracting area

Use these functions to extract areas by style.

The functions

Extracting To Extract From
  The Active Drawing Drawing Specified By
System Name User-Defined Name
Area Area(units; StyleName) OneUpN.Area(units; StyleName) "DrawingName".Area(units; StyleName)
LayoutN.Area(units; StyleName)
Area Ex AreaEx(yes/no; units, StyleName) OneUpN.AreaEx(yes/no; units, StyleName) "DrawingName".AreaEx(yes/no; units, StyleName)
LayoutN.AreaEx(yes/no; units, StyleName)

Syntax note and examples

  1. SYNTAX NOTE
  2. No/Yes Controls whether EngView should include the combined area of closed contours (holes). Yes = excluded; No = included (this is 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. No is the default and can be omitted.
  3. Units: The measurement units in which EngView will compute the result. To use the default units, leave the argument empty.
  4. 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.
  5. List separator: When typing a formula, make sure you separate its arguments 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.Area(m; Plotting); n2$ $Layout1.Area(m, Plotting), n2$

The following examples demonstrate how the arguments work.

Child Styles Areas Units Styles Drawing Function
Not Included Square Millimeters All Specified by User-Defined Name "Body".Area( , mm)
Not Included Square Millimeters Creasing Specified by System Name Layout1.Area(mm, Creasing)
Included Square Decimeters All Active AreaEx( , dm, yes)