The formulas that follow extract length values from objects in 1up and layout drawings. You can extract the lengths of objects by referring to:
Extracting | From | ||
---|---|---|---|
The Active Drawing | Drawing Specified By | ||
System Name | User-Defined Name | ||
Length | Length(StyleName, units, no/yes) | OneUpN.Length(StyleName, units, no/yes) | "DrawingName".Length(StyleName, units, no/yes) |
LayoutN.Length(StyleName, units, no/yes) |
TIP: To extract the total length of all objects in all styles, leave the argument empty. In this case, the result always includes the lengths of objects in child styles.
With Semicolon | With Comma |
---|---|
$Layout1.Area(m; Plotting); n2$ | $Layout1.Area(m, Plotting), n2$ |
The following examples demonstrate how the arguments work.
Styles | Units | Child Styles | Drawing | Function |
---|---|---|---|---|
All | Meters | Always Included | Active | Length( , m) |
All | Millimeters | Not Included | Specified by User-Defined Name | "Body".Length( , mm) |
All | Default | Included | Specified by System Name | Layout1.Length(, yes) |
Creasing | Decimeters | Included | Active | Length(Creasing, dm, yes) |
Extracting | From | ||
---|---|---|---|
The Active Drawing | Drawing Specified By | ||
System Name | User-Defined Name | ||
Length | LengthByFilter(FilterName, units) | OneUpN.LengthByFilter(FilterName, units) | "DrawingName".LengthByFilter(FilterName, units) |
LayoutN.LengthByFilter(FilterName, units) |
With Semicolon | With Comma |
---|---|
$Layout1.Area(m; Plotting); n2$ | $Layout1.Area(m, Plotting), n2$ |
The following examples demonstrate how the arguments work.
Filter Name | Units | Drawing | Function |
---|---|---|---|
Circles15 | Meters | Active | LengthByFilter(Circles15, m) |
Arcs>20 | Millimeters | Specified by User-Defined Name | "Body".LengthByFilter(Arcs>20, mm) |
Arcs=105 | Decimeters | Active | LengthByFilter(Arcs=105, dm) |