Measuring a tool position of a specific tool оn inliner machines

Application

The formula prints a value that indicate the position — vertical or horizontal / against or along the flute direction — of the creasing tool оn inliner machines. The value is the distance of the creasing tools from the edge of the sheet or from the bounding rectangle if there is no sheet.

The formulas count the line according to:

IMPORTANT: The formula works only for files saved to your Project Organizer database.

The formula

To print In drawing Use
Tool position 1up, layout $OneUpN.ToolPos(StyleName; LineIndex, ProductionDirection; Units)$
  1. SYNTAX NOTES
  2. StyleName The name of the style applied to the object that is to be counted.
  3. LineIndexThe consecutive number of the tool for which information is to be extracted.
  4. ProductionDirection The value of the angle that determines (1) horizontal or vertical /against or along flude direction distances will be extracted and (2) the production direction of the design (see example below).
  5. Units The measurement units in which EngView will compute the result. To use the default units, leave the argument empty.
  6. 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$

Applying the formula

Examine the following 1up drawing, and then see the examples below. Note the indicated line indexes and see how uses the formula to extract their values

Formulas extracting horizontal and vertical distance

To print line Production Direction Value for ProductionDirection
Vertical 1 90
Horizontal 180
Vertical 2 270
Horizontal 0

Example

Position to Extract Index Production Direction Use Result
First vertical line 1 1 $OneUp1.ToolPos("Wheel Creasing", 1, 90, mm)$ 200.00
2 $OneUp1.ToolPos("Wheel Creasing", 1, 270, mm), n1$ 200.0
First horizontal line 1 $OneUp1.ToolPos("Wheel Creasing", 1, 180, mm)$ 96.00
2 $OneUp1.ToolPos("Wheel Creasing", 1, 0, mm)$ 81.00

Formulas extracting distance according to the flute direction

When you need to extract distances against or along the flute direction, use the fd() function as argument for ProductionDirection. It returns the direction of the flute.

In the example that follows, identical formulas return different results because they take into account the direction of the flute.

Position to Extract Index Flute Direction Use Flute along y-axis Flute along x-axis
First line 1 Against $OneUp1.ToolPosList("Wheel Creasing", 1, fd(), mm)$ 200.00 81.00
Along $OneUp1.ToolPosList("Wheel Creasing", 1, fd()+90, mm), n1$ 96.0 200.0