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.
To print | In drawing | Use |
---|---|---|
Tool position | 1up, layout | $OneUpN.ToolPos(StyleName; LineIndex, ProductionDirection; Units)$ |
With Semicolon | With Comma |
---|---|
$Layout1.Length(Cutting; m; yes); n2$ | $Layout1.Length(Cutting, m, yes), n2$ |
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
To print line | Production Direction | Value for ProductionDirection |
---|---|---|
Vertical | 1 | 90 |
Horizontal | 180 | |
Vertical | 2 | 270 |
Horizontal | 0 |
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 |
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 |