Functions extracting rule-to-rule distances

Horizontal/Vertical rule-to-rule distances

The functions that follow return the values of the distances between the board's outer horizontal (left-to-right dimension) and vertical (top-to-bottom dimension) rules. You can define whether the stripping rules and structure-irrelevant objects to be considered or ignored.

The functions

Vertical rule-to-rule distance RuleToRuleHeight([units, withStrippingRules, useStructIrrelevant])
Horizontal rule-to-rule distance RuleToRuleWidth([units, withStrippingRules, useStructIrrelevant])
  1. SYNTAX NOTE
  2. Units: The measurement units in which EngView will compute the result. To use the default units, leave the argument empty.
  3. withStrippingRules: Type yes/true/1 or no/false/0, as needed. If the argument is left empty, EngView uses Yes — that is, the stripping rules will be taken into account.
  4. useStructureIrrelevant: Type yes/true/1 or no/false/0, as needed. If the argument is left empty, EngView uses No — that is, the structure-irrelevant objects will be ignored.

    NOTE: Structure-irrelevant objects are (1) all objects outside the Structural layer and (2) objects in the Structural layer in styles to which any of the following production processes has been set: Auxiliary; Glue/Adhesive tape wheel; Tear strip wheel; Reinforcement tape wheel; Wheel gluing; Spot glue gun; Panel separator; Glue area contour; Closed area contour.

  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$

Examples

The following example illustrates how you can use rule-to-rule formulas. The layout has stripping rules and the text "751" — it is irrelevant to the structure.

To extract distance between Units Stripping rules Structure irrelevant objects Use Example
Horizontal endmost rules in Layout1. Default Considered Ignored RuleToRuleWidth() 906.00
Horizontal endmost rules in Layout1. m Considered Ignored RuleToRuleWidth(m) 0.91 m.
Horizontal endmost rules in Layout1. mm Ignored Ignored RuleToRuleWidth(mm, no) 743.00 mm.
RuleToRuleWidth(mm, no, no)
Horizontal endmost rules in Layout1. mm Considered Considered RuleToRuleWidth(mm, , yes) 949.79 mm.
RuleToRuleWidth(mm, yes, yes)
Horizontal endmost rules in Layout1. mm Ignored Considered RuleToRuleWidth(mm, no, yes) 868.29 mm.

Rule-to-rule distances by flute direction

The functions that follow return the rule-to-rule distances measured along or against the material's flute direction, the use of stripping rules and structure-irrelevant objects. For example, if the flute direction goes in the left-to-right direction, the formula will return the horizontal dimension; when the flute direction is in the top-to-bottom direction, the formula will return the vertical dimension.

IMPORTANT: Do not think of these dimensions as width or height, but rather as along-flute dimension and against-flute dimension.

TO CHECK THE FLUTE DIRECTION: To check the actual flute direction, go to the respective 1up drawing and look at the flute direction icon in the upper left corner of the graphical area. The arrow there indicates the flute direction or see Drawing Properties.

The functions

Rule-to-rule distance by flute direction RuleToRule(direction, [units, withStripingRules, useStructIrrelevant])
  1. SYNTAX NOTE
  2. direction: (This argument is mandatory.) Use fd() to extract rule-to-rule distance along the material's flute direction; use fd()+90 to extract rule-to-rule distance against the material's flute direction.
  3. Units: The measurement units in which EngView will compute the result. To use the default units, leave the argument empty.
  4. withStrippingRules: Type yes/true/1 or no/false/0, as needed. If the argument is left empty, EngView uses Yes — that is, the stripping rules will be taken into account.
  5. useStructureIrrelevant: Type yes/true/1 or no/false/0, as needed. If the argument is left empty, EngView uses No — that is, the structure-irrelevant objects will be ignored.

    NOTE: Structure-irrelevant objects are (1) all objects outside the Structural layer and (2) objects in the Structural layer in styles to which any of the following production processes has been set: Auxiliary; Glue/Adhesive tape wheel; Tear strip wheel; Reinforcement tape wheel; Wheel gluing; Spot glue gun; Panel separator; Glue area contour; Closed area contour.

  6. 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$

Examples

The following example illustrates how you can use rule-to-rule formulas. The layout has stripping rules and the text "751" — it is irrelevant to the structure.

To extract distance between Flute direction Units Stripping rules Structure irrelevant objects Use Example
Endmost rules in Layout1. Along direction Default Considered Ignored RuleToRule(fd()) 906.40
Endmost rules in Layout1. Against direction cm Considered Ignored RuleToRule(fd()+90, cm) 69.30 cm.
Endmost rules in Layout1. Against direction mm Ignored Ignored RuleToRule(fd()+90; mm; no) 495.00 mm.
RuleToRule(fd()+90; mm; no, no)
Endmost rules in Layout1. Along direction m Considered Considered RuleToRule(fd(), m, , yes) 0.95 m.
RuleToRule(fd(), m, yes, yes)

From a specified drawing

To extract rule-to-rule distance Specified by Drawing With
System Name User-Defined Name
Horizontal OneUpN.RuleToRuleWidth(units, withStrippingRules, useStructIrrelevant) "DrawingName".RuleToRuleWidth(units, withStrippingRules, useStructIrrelevant)
LayoutN.RuleToRuleWidth(units, withStrippingRules, useStructIrrelevant)
Vertical OneUpN.RuleToRuleHeight(units, withStrippingRules, useStructIrrelevant) "DrawingName".RuleToRuleHeight(units, withStrippingRules, useStructIrrelevant)
LayoutN.RuleToRuleHeight(units, withStrippingRules, useStructIrrelevant)
Along flute direction OneUpN.RuleToRule(fd(), [units, withStripingRules, useStructIrrelevant]) "DrawingName".RuleToRule(fd(), [units, withStripingRules, useStructIrrelevant])
LayoutN.RuleToRule(fd(), [units, withStripingRules, useStructIrrelevant])
Against flute direction OneUpN.RuleToRule(fd()+90, [units, withStripingRules, useStructIrrelevant]) "DrawingName".RuleToRule(fd()+90, [units, withStripingRules, useStructIrrelevant])
LayoutN.RuleToRule(fd()+90, [units, withStripingRules, useStructIrrelevant])