V12 Interface Guide
V12 Interface Guide
Interface Guide
Revision 1.14
Copyright notice
No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of Magi-
Cut Software Ltd.
Microsoft, MS-DOS, Visual Basic, Windows, Windows 7, Windows 8, Windows 10, Windows 11 are either
registered trademarks or trademarks of the Microsoft Corporation. Several of the diagrams in this manual are
based on images provided by the Corel Corporation and the Microsoft Corporation.
Page 2 of 271
Interface Guide
Contents
1. Introduction ...................................................................................................................... 4
1.1 Overview of the program ............................................................................................ 6
1.2 Nested Optimising .................................................................................................... 20
2. Import data..................................................................................................................... 27
2.1 Import parts .............................................................................................................. 29
2.2 Import product requirements .................................................................................... 57
2.3 Import boards ........................................................................................................... 71
2.4 Import Parts / Boards / Patterns - Pattern Exchange Format (PTX) ........................ 86
2.5 Import/Export DXF drawings for Patterns and Parts ................................................ 97
2.6 External drawings - Part library and Product library ............................................... 103
2.7 Import from file - part library ................................................................................... 105
2.8 Import product data ................................................................................................ 108
2.9 Import Quote and Orders ....................................................................................... 108
3. Pattern Exchange File - Specification - V1.19 ............................................................. 115
4. Export data .................................................................................................................. 181
4.1 Export runs ............................................................................................................. 181
4.2 Export Part and Product costing reports ................................................................ 188
4.3 Export fittings and operations................................................................................. 190
4.4 Export cutting lists .................................................................................................. 191
4.5 Export - Pattern Exchange Format ........................................................................ 194
4.6 Export - Board library data ..................................................................................... 198
4.7 Export - Part library data ........................................................................................ 199
4.8 Export - Product data ............................................................................................. 200
4.9 Export variables deployment list ............................................................................ 204
5. Stand alone operation .................................................................................................. 207
5.1 Import parts / boards / patterns - stand alone ........................................................ 207
5.2 Export reports - stand alone ................................................................................... 211
5.3 Export Library data - stand alone .......................................................................... 215
5.4 Batch operations - stand alone .............................................................................. 216
5.5 Stock update and stock issue - stand alone .......................................................... 219
5.6 Import product requirements - stand alone ............................................................ 224
5.7 Saw transfer - stand alone ..................................................................................... 226
5.9 Stand alone operation - examples ......................................................................... 229
5.10 CADLink program ................................................................................................ 231
5.11 Quotes and Orders Import – Stand alone ............................................................ 241
5.12 V12 Standalone shell ........................................................................................... 243
5.13 Archiving Standalone operation ........................................................................... 253
5.14 Form/Label printing .............................................................................................. 254
Page 3 of 271
Interface Guide
1. Introduction
This guide describes how to import and export data to and from the V12 Optimising and
Production software. It gives the details for interfacing with the program and extracting
data from the system
Kitchen cabinets
Office furniture
Shop fittings
Doors
Plastic fabrications
Caravans
Bathrooms
Vanity Units
Enter or import part sizes and quantities and let the pro gram create a set of cutting
patterns and cutting instructions. From the cutting patterns send information directly to the
saw or machining centre to cut each pattern and machine each part.
The program works in Millimetres, Decimal Inches, or Fractional (Imperial) inches. Part
lists can be entered in any measurement and converted.
Page 4 of 271
Interface Guide
Use this guide to integrate the Optimising program with other computer operations. Some
typical situations are listed below.
Import parts lists or product requirements lists - part lists or lists of product
requirements may be stored on another database / system and need to be transferred to
the Optimising software ready for optimisation.
Export results for further analysis - export the summary results of each optimisation to
another database or spread sheet for further analysis.
Stand alone operation - run a sub-set of the Optimising software. For example, one
customer enters lists of parts to be cut at remote sites using a text editor and transfers the
results to a central location to be optimised.
Interfacing with special machinery- to export data in a special format so that it can be
used by other machinery. e.g. specialist loading or destacking equipment.
Interfacing with saws and machine centres not covered by the software - the
Optimising software covers a wide range of saws and machining centres but it may be
necessary to do extra work to link to specialist machines or machines not covered by the
standard software.
Page 5 of 271
Interface Guide
Start at the main screen, this is the command centre of the system. Access all the options
from here.
Main screen
The program name is shown at the top of the screen. There are different names in some
countries, for example, Cut-Rite, Magi-Cut, Schnitt-Profi(t) …
At the left is a tree showing the various options and existing data. Click on an item in the
tree to see the files in a category. There are also traditional menus and buttons to access
all the options.
Page 6 of 271
Interface Guide
Part lists
A part list is a list of all the part sizes and quantities required for cutting. This might be for
a single order or for several different jobs.
Select a part list by opening the Part list branch of the file tree and double clicking on a
part list.
The program may prompt: 'Patterns exist - significant changes will delete patterns' - this
happens because in the demo data (installed with the system) many of the part lists are
already optimised.
It is Ok to ignore this message as the next step is to optimise the part list and re-create
the patterns.
The program moves on to the Part list editor screen. This is a spread sheet like grid listing
part sizes and quantities and other information about each part type.
Page 7 of 271
Interface Guide
Part list
- Review and/or enter the required part list items. The basic information is:-
Page 8 of 271
Interface Guide
At the right of the part list screen there are several other columns - most of these are
custom columns which can be used for all the extra data for parts, for example, edging,
text for a part label, a tracking number …
MATERIAL CODE: This is important because it determines the material for a part. The
program uses this to extract candidate boards from the board library and create a board
list. The board list is simply the list of available board sizes and quantities for the job.
Page 9 of 271
Interface Guide
Board list
Board list
The Board list is created by the program extracting from the Board library all board sizes
(and offcuts if any) matching the material codes used in the Part list against each part.
Board can include full size stock boards and offcuts from previous runs (marked with a
type of ‘X’.
Page 10 of 271
Interface Guide
Board library
The board library stores the details and quantities of all the sheet material (a library is
provided in the demo data).
Board library
In this example there are two board sizes available for material MFC18-BEECH.
The board library can include extra information for each sheet size, for example, cost, how
to deal with low stock levels, storage ...
Note - There are a wide range of materials from different suppliers so before using the
program for real - an important task is to set up the board library for the materials typically
available for the company.
Page 11 of 271
Interface Guide
Optimise
Once the Part list and Board list are created the job is ready to be optimised.
The program produces a set of cutting patterns and moves to the 'Review runs' section of
the program. This shows all cutting patterns and a set of summary reports.
Page 12 of 271
Interface Guide
The first report shown is an overall summary of the job; the Management Summary.
Management summary
This is an overall summary of the job, for example. Total costs, Overall Waste
percentage, Net material used …
Use the Navigation buttons or 'Summaries' menu option to view other reports.
Page 13 of 271
Interface Guide
At the foot of the report are a set of tabs with more information. For example, the
'Dashboard' gives a graphical view of the data.
Dashboard
Page 14 of 271
Interface Guide
The individual cutting patterns are viewed via the 'Pattern preview' option.
Pattern preview
Pattern preview
Page 15 of 271
Interface Guide
Use the navigation buttons or the Summaries menu to move between patterns and other
summaries.
Pattern
The tabs at the foot of the report show more details, for example, a full list of the parts
produced by the pattern. The cuts, waste, offcuts and part information are shown for each
pattern.
Page 16 of 271
Interface Guide
After Optimisation the patterns (cutting instructions) are transferred to the Saw or
Machining centre.
Page 17 of 271
Interface Guide
At the main screen select the Saw transfer or Machining Interface option.
Page 18 of 271
Interface Guide
For Saw transfer, for example, the program prompts with the current job.
Page 19 of 271
Interface Guide
Transfer to Saw
- OK to confirm
Note - For practical use the saw transfer and machining transfer need to be set up for the
company's machines. There are parameters for this and a wide range of options are
available.
Typically the saw or machining centre transfer sends data to a location on the Network
(Path for Saw data) and a separate program provided by the machinery manufacturer
runs and sends the data to the machine.
The program also provides Nested optimising - in this case the transfer is usually to a
Machine centre to both divide the patterns and machine the parts.
Page 20 of 271
Interface Guide
Import and Export operate in the same way for Optimising and Nested Optimising and the
program operations and reports are the same, for example, the Management summary.
Page 21 of 271
Interface Guide
The runs are typically based on rectangular and shaped parts and are usually for smaller
run quantities, processed one high.
Page 22 of 271
Interface Guide
The pattern contains the cutting instructions for the pattern and the machining for each
part.
Page 23 of 271
Interface Guide
Page 24 of 271
Interface Guide
The nesting option can be used and integrated with Weeke WoodWop and MPR(X) files.
Page 25 of 271
Interface Guide
Note - When dealing with MPR(X) parts import can be a bit tricky as it has to take account
of the variables in the MPR(X) files.
Page 26 of 271
Interface Guide
2. Import data
These days it is common for programs to interact with other files and systems. For
example, part lists or product requirements may be created by a separate Sales order
system; Boards may need to be imported from a stock control database.
Import parts
Import product requirements
Import boards
Import patterns (including parts and boards)
Import Quotes and Orders
These options are also available on the File Toolbar. Data can also be directly imported to
a Part list.
Import options
Page 27 of 271
Interface Guide
Most common is to import parts lists created by another system, for example, an order or
sales system.
When working with products it is quite likely the product requirements are generated by an
external sales system.
For boards is it sometimes necessary to import boards to the board library (the Stock
control module is required for this). The system can also be set up to synchronise with
external board databases e.g. Bargstedt SQL.
Sometimes users with one-off jobs with special board sizes prefer to import the board list
rather than add those items to the board library.
Page 28 of 271
Interface Guide
Part lists can be quickly imported. At the main menu there are direct options on the File
menu.
Import parts
Page 29 of 271
Interface Guide
Import parts
Page 30 of 271
Interface Guide
In this example the import format is the program's format (named PNX; a ‘comma
separated values (CSV)’ file with the fields in a fixed order.
- Set the System parameter: Path for import data to specify where the files to import are
located.
- Set the 'Import parameters' to describe the import format and other features of the
import.
Page 31 of 271
Interface Guide
The import parameters are accessed from the Import dialog (File - Import parts - File -
Parameters).
Import parameters
Page 32 of 271
Interface Guide
One of the simplest options is: Part list order – ASCII/Unicode CSV (PNX)
The standard format is PNX but there are several other formats to choose from. Some
are more complex imports where part and board sizes can be imported in one go or a
batch of part lists can be imported, for example, 'Batch, part list order'. The options are:-
There are several other parameters to control the import of parts, for example, to set the
separator character and to set whether the import files are deleted after import …
Custom import formats - It is also possible to use a custom format (user defined format).
This can be useful where there is limited control over the format of the external file (see:
Part list import parameters'). Once the format is set files can be quickly imported from the
File tree at the main screen.
Page 33 of 271
Interface Guide
Page 34 of 271
Interface Guide
Where the format of the external file is not known or needs to be set up – use the Import
Wizard (File – Import Wizard).
The program imports data from any CSV (comma separated values) files and Excel files.
Page 35 of 271
Interface Guide
You can then work through the fields and assign them to the correct Part list fields name
by selecting the field name on the ‘What’s this’ button.
Note – you can also cut and paste directly from a spreadsheet to the part list – for
example where the spreadsheet has data in the same order and format as the part list.
Page 36 of 271
Interface Guide
A part list is a list of part sizes and quantities to cut. 'Import parts' is the process of
importing a list of sizes and quantities. The parts can then be optimised to produce cutting
patterns. A simple import file:-
This is the basic data for a part: Part code, Material code, Length, Width, Quantity with the
fields in the same order as displayed at the part list screen.
This format (called PNX) is automatically recognised by the Optimising software - use this
format if possible. The import file extension is PNX e.g. JOB1.PNX
Page 37 of 271
Interface Guide
The import file can also contain up to three header lines which contain:-
Page 38 of 271
Interface Guide
Title, optimising and saw parameter list names are imported from the import file.
A part list is essentially a list of part sizes, quantities and the material to use for each part.
Part list
Part list title - a description for the part list. Use this to identify part lists - the title is shown
on most screens and printed on most reports.
Page 39 of 271
Interface Guide
Optimising parameter list name - parameter list to use when optimising a part list. The
optimising parameter list describes features such as the saw blade thickness, trims, and
type of recuts to use when optimising.
Saw parameter list name - name of the saw parameter list to use when optimising a part
list. Saw parameters describe the features of a saw, such as, overall cutting length,
minimum trims, method of re-cutting etc.
Optimising and saw parameter names default - optimising and saw parameter names are
automatically defaulted to the first entry in the list of parameters files if they are not
otherwise specified.
Material - a unique material code. For example, 15mm melamine faced chipboard could
have a code like MFC15 or 3/4 inch particle board might be PB3/4. The materials are
stored in the Board library. There is a material code against each part in the part list so
that the program uses the correct boards for each part.
Part sizes - The part sizes are the Length and Width of the part. The length is usually the
longest edge of the part and if the part is grained the length is the dimension running
along the grain direction. The width is usually the shortest edge of the part but if the
material is grained the width is the dimension running across the grain direction.
The order in which the length and width columns are displayed depends on the setting of
the System parameter: Order of dimensions for parts. If possible keep the order of length
and width fields in the import file the same as that set in the system parameters.
In the program the 'length' and 'width' are the dimensions set by the 'length' and 'width'
fields regardless of the relative sizes of the dimensions.
Over/under production - allowed under or over production of a part. If they are set for each
part they represent the absolute number of over or under produced parts. If they are set in
the global header line they represent the percentage of over or under produced parts for
every part in the list.
Page 40 of 271
Interface Guide
In an import file the grain value is represented by a number '0' - no grain, '1' grain along
length, '2' grain along width.
Quick Edging field - This field stores the ‘Quick Edging’ codes for a part. These codes are
a simple way of describing the edging requirements for a part where the edging is
straightforward, for example, tape. A single code describes the edging on each edge, for
example.
0 - No edging
A - White tape 1mm
B - Red tape 1mm
The order of edges follows the part list order. If part list order is Width-Length then edges
are in the order (width-width length-length).
Edging
Global header line - part list - At the top of the part list screen is a header line labelled
'global'. If there is an entry in this line for a column this defines the value in that column for
every part in the list.
Page 41 of 271
Interface Guide
Page 42 of 271
Interface Guide
As well as the standard data items such as part code, length, width there are many other
useful pieces of information to record for each part, for example, machining data, storage
instructions, colours, complex edging, and so on. This data varies for each customer -
some use a lot some use none at all. The Optimising program provides extra user defined
fields (called 'Information boxes') for each part.
Information boxes
This data can also be imported from a file. In the following example the PNX file includes
data for the information boxes.
F-UNIT-DOOR,WHITE-LAM-1MM,495.0,570.0,20,,,N,,,,,WHITE-TAPE-22MM,WHITE-TAPE-
22MM,WHITE-TAPE-22MM, WHITE-TAPE-22MM
Page 43 of 271
Interface Guide
Pre-defined information
This is information that is already stored by the system or is created during optimisation.
Destacking Nesting
Destack type Step angle
Bottom layout Mirrored
Bottom material Do not place part on edge
Page 44 of 271
Interface Guide
Machining Drawing
Drawing name import
Drawing name transfer
Transfer name - back
Transfer name - horizontal
Transfer name - common
Machine before edging
Picture filename
Create file (unmachined parts)
Stop position
The information boxes can be set with pre-defined information or user defined
information.
For example, to print a label for each part and make sure that the original product code is
on the label - set the 'Product code' information box for the part list. When the part list is
created from the product requirements the correct product code is automatically stored
against each part.
Page 45 of 271
Interface Guide
This type of information is provided as customisable information boxes since the use of
this information varies a lot between users and can be unique to each user. For example,
a user entering only part lists would not have use for the Product code field.
Information boxes can also be set up for user defined (free format) information.
In some cases there is no control over the format of the import file or it is preferable to
leave the format unchanged as the file is used elsewhere in the production process. In
this case the format of the import file has to be set up in the Optimising program so it can
be interpreted correctly by the import process.
To do this use the Part list import parameters (Main screen - Parameters - Part list import
parameters).
(You can also import custom files directly to the part list – see above).
In this example the data is not in PNX format because the order of fields is: Part Code,
Length, Width, Quantity, Material.
END/2,600.0,750.0,25,MFC15
TOP,1200.0,690.0,30,MDF18
PLINTH,1500.0,150.0,10,MDF18
Page 46 of 271
Interface Guide
Each parameter is a field in the part list and the parameter value is the position of that
field in the external ASCII file. There are two other parameters that need to be set.
R1.003./6678
Product line 31/76
------------------
Work for Week 27 < Start of part list format
STANDARD
ANGULAR
WU05WD-WHITE-DOOR,WHITE-LAM-1MM,495.0,750.0,40,,,Y
In the above example the first three lines are not relevant to optimising and can be
ignored by setting header lines to '3'. This parameter only applies to the user defined
import types (options 6 and 7).
Page 47 of 271
Interface Guide
Extension for CSV file - set this to the file extension for the file, for example, CSV, ASC,
TXT etc.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
To do this create a batch file (BTX) containing the part list names as well as creating the
part list import files. The part list import files can be in PNX format, PNX part code and
quantity format, or a user defined format (the format options are set in the Import
parameters).
In its simplest form the batch file is just a list of files to import.
Page 48 of 271
Interface Guide
Batch import
Move to the Import dialog. The files offered are now Batch (btx) files.
Page 49 of 271
Interface Guide
The parts lists are imported and appear in the file tree on the main screen:-
The batch file (BTX) can also include other items as well as the Part list name. The
process of batch import also creates the batch in the File tree at the main screen. The
part lists are ready for optimising with a single click of a button. The batch is ready to
optimise.
Page 50 of 271
Interface Guide
In the above example the default optimising and saw parameter names are used but
these can also be specified in the imported batch file:-
Note - If a run number is not included the program assigns a run number automatically. If
parameter list names are not included these can be entered before optimising. The board
list name is set equal to the part list name.
Page 51 of 271
Interface Guide
When working with Nesting optimising the imported list may contain variables related to
the Weeke MPR(X) drawing format.
MPR(X) variables and answers can be imported during a part list import process. This
only applies to the following two import formats:-
Each line in the import file refers to a line in the part list. The variables for each part are
specified in the same line as the standard fields (e.g. part code, material, length, width
etc....). A variable can appear in any field position on a line and is denoted by surrounding
the variable name with @ symbols.
@DOORMAT@
The answer is always the next field and must not be surrounded by @ symbols. So a
sequence of variable and answer would be as follows:
@DOORMAT@,MDF-18
The variable and answer pairs can occur at any point in the line:-
PARTCODE,@DOORMAT@,MDF-18,MEL-CHIP-
18MM,123,17,15,,,@CARCASEMAT@,MELCHIP15,@HINGE@,1
If a variable answer is blank, the variable is not placed into the generated part list.
Page 52 of 271
Interface Guide
The 'Template details' information box allows users to import grain match templates
directly into the part list without entering a template pattern in the pattern library.
Users can configure their part import data to contain a 'master' template part with a size to
match the overall template size and containing all the relevant template information in a
field to be imported into the Template details information box.
The create cutting list process uses the content of this information box to set the relevant
grain matching data for each component of the template.
The Template details information box can be found in the 'Grain' section of the information
box types. The 'Grain matching' information box must also be configured when using the
Template details information box to define templates.
Please note that the contents of the Template details information box can only be set
when importing parts and this information box cannot be edited in the part list.
Template details
The Template details information box contains three fields separated by semi-colons (;).
e.g. 1;4.8;[[[1;2;3];[4;5;6]]]
This information should be set for the master part in the part list to be imported.
This is the saw blade thickness to be used in the template. If no value is set a zero blade
thickness is assumed. Please note that for embedded templates (Cut parts in main
pattern) the saw blade thickness eventually used is set in the optimising parameters.
Page 53 of 271
Interface Guide
This field contains the template pattern in a similar format to the recursive (PTNR) pattern
format used in the CADmatic .SAW file. Square brackets are used to indicate the start
and end of a cutting phase and the part list item number used to indicate parts
e.g. [[[1;2;3];[4;5;6]]]
Semi-colons are used to separate values where necessary. Trims at the start and end of
a phase can be entered preceded by the letter 'T'
Waste parts/cuts can also be specified by specifying the dimensions preceded by the
letter 'M'. The dimension specified is the full length/width of the waste piece (i.e. the
length/width of the falling waste plus the thickness of the saw blade).
Page 54 of 271
Interface Guide
Please note all dimensions (blade thickness, trims and waste parts/cuts) should be
entered in millimetres when the measurement is millimetres and in decimal inches when
the measurement mode is decimal inches or fractional inches.
The data in the Template details information box is used to set the content of the Grain
matching information box when creating a cutting list from an imported part list or when
importing parts directly to a cutting list. When this cutting list is optimised the Template
details information box is also used to generate embedded templates in patterns and
appended template patterns.
For this process to work correctly the Grain matching information box must also be
configured. The size of the master part in the part list must be at least as big as the
template pattern and the components parts must all have matching material, valid grain
and quantities
If there are problems with the content of Template details information box, the grain
matching data is not set and the following errors can be displayed: -
Page 55 of 271
Interface Guide
also shown if the Grain matching information box is not configured and template details
are set.
Page 56 of 271
Interface Guide
When working with Products (PQ module) it can be the case that the list of requirements
is generated elsewhere, for example, in a Sales system.
At the simplest a product requirement list for import is just an ASCII list of product codes
and the quantities required.
wall-single,40
base-oven-hse,20
base-single,15
Page 57 of 271
Interface Guide
Page 58 of 271
Interface Guide
- Select OK to import
(There are settings to control the import, for example, to set the separator character and
whether to delete import files after import or not).
Page 59 of 271
Interface Guide
The requirements file is shown in the File tree at the main screen.
Once the format is set up RQX files can also be imported directly from the File tree.
Page 60 of 271
Interface Guide
For a product requirements import to work correctly the product codes in the list must
represent products already set up in the product library.
In the above example there are fixed size products and one code represents one product
so the import file can be set up quite simply. However, one of the reasons for using a
product library is to create 'variable products' where one 'layout' might cover a number of
different sizes, colours, and styles of cabinet.
In this case the product requirements list needs to include answers for those variables
(e.g.720.0 x 450.0, Teak, Modern) as they vary for each customer or order.
Page 61 of 271
Interface Guide
Because the contents of a product requirements file can be so varied and include
variables there is no standard format for import. Instead the format is defined by one or
more sets of 'Product requirements Import parameters'.
Page 62 of 271
Interface Guide
The parameter values are set via the option (Main screen - Parameters - Requirements
Import parameters)
The left hand column shows the various fields for a product and the middle column sets
the position of the field in the import file. The last column is the name of the product
variable (where required).
For example, the fields in the file below are: Product code, Product quantity, and Product
width
KTUNIT,1,1950.0
KTUNIT,3,1750.0
KYUNIT,1,1350.0
Page 63 of 271
Interface Guide
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 0
More complex products may contain variable data. Variable data is information that
changes for each item or customer e.g. the delivery date or type of door handle. If the
external file already contains the answers for this variable data this can be specified in
remaining variable lines.
The # symbol is used to indicate the item is in the imported header line and the number
indicates the position in the header line.
The other items are the fields where the variable answer for each item is located e.g,
DOORMATERIAL may be TEAK for one product and OAK for another.
For the import to be correct the relevant products and variables must already be set up in
the product library and variables table
Page 64 of 271
Interface Guide
The parameter list contains parameters to set the Header lines and the extension of the
import file.
Header lines - describes the number of header lines (any lines before the lines of data) in
the import file. This is useful where not all the header line are related to optimising.
Import - header line - specifies which (if any) of the header lines is the header line to
import. Only one header line can be imported.
Extension for CSV file - specifies the file extension of the import file - default: RQX.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
In this example below there are four header lines and the header line to import is on line
2.
9093:/77/24-002
WK7,ORDERS FOR WEEK 7
BATCH:093221
RX RUN - TY
KTUNIT,1,1950,RED < Start of product lines
KTUNIT,3,1750,WHITE
KYUNIT,1,1350,GREY
Parameter Value
Header lines 4
Import - header line 2
Extension for CSV file ASC
Calculate parts
On import the program can automatically create the list of parts for the product
requirements. This avoids the step of moving to the Product requirements screen and
optimising from that screen. This allows the parts to be optimised as part of a batch or for
the part list to be optimised with a 'stand alone' process.
Page 65 of 271
Interface Guide
Set the parameter value for 'CSV or Excel' to '1' for Excel. If there are two files with the
same name (e.g. IMPORT.XLS and IMPORT.XLSX) the XLSX file is imported.
Answer table
For custom products it may also be necessary to import the answers to product variables.
For example, if a customer has ordered RED doors for the product that answer can be
imported. It is also possible to import a set of predefined answers for a product (called an
answer table), for example, a product with red doors may also include red trims, a certain
type of handle ... The field for the name of the answer table is set in the 'Answer table'
parameter.
Order number or code - Each order or requirements list has a unique number or code.
The order code is set to the name of the import file.
Reference - The Reference is a descriptive reference for the requirements list or order
which is used as a cross reference by the optimising program. This reference can be
printed on product or part labels and other documents.
Optimising parameters - This is the name of the optimising parameter file for this
optimisation. Optimising parameters are used to set items such as the saw blade
thickness, type of cuts and trims.
Saw parameters - This is the name of the saw parameter file for this optimisation. Saw
parameters set items such as the type of saw, cutting length, stack height and so on.
Overs - This is the percentage of over-production allowed for each product. If it is set it
applies to each product line in the requirements list.
Product code - Each product in the product library is identified by a unique code. Note that
the same product code can be repeated in the requirements list for example, where the
order is for a different customer, or where sizes or other features of the same basic
product vary.
Product information - This is extra information about the product. Sometimes this is used
for the product description but can be used for other information like a product identity
number or details specific to that line of the requirements.
Page 66 of 271
Interface Guide
The diagram defines the width X as the leading edge of the product but this is just an
example. The width can be assigned to any edge for each product - this is determined by
the product formulae and the drawing in the product library. The program always uses X -
for Width, Y - for Height, and Z for Depth.
Product variables
'Product variables' are used to define the portions of a custom product that vary for each
customer; items like colour, measurements, number of drawers ...
For custom products the product may contain several ‘product variables’ with each
standing for a variable item.
Page 67 of 271
Interface Guide
The answers to these variables for each order or customer are entered as a Product
requirement.
Where the requirements are imported the answers to the variables for each product can
be included in the import file.
Page 68 of 271
Interface Guide
In the file below the answers for global variables are included in the top line (the header
line) and answer for variables for each product and included on each requirements line.
There are also some fixed fields for the header line:-
File name
Reference
Optimising parameter list name
Saw parameter list name
Overs percentage
The following file contains a header line with fixed information and global data.
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 4
Variable 1 #5 CUSTOMER
Variable 2 5 DOORCOLOR
Page 69 of 271
Interface Guide
For importing answers to variables set the position in the file and give the name of the
variable.
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 0
Variable 1 4 DOORCOLOR
To do this enter the variable name and the answer on the product line.
PRODDESK,200,300,400,GREEN,OAK,@PLINTH@,500,@BACKMAT@,TEAK
Items up to 'OAK' are defined by the Requirements import parameters and the remaining
items are other product variables. Variables must be in the product definition e.g. of
PRODDESK.
The variable name must be surrounded by @ symbols and the answer must be in the next
field and must not be surrounded by @ symbols. The variable/answer pairs can occur at
any point, if necessary.
PRODUCT1,@CARCASEMAT@,MDF-15MM,,,110,220,50,15
Page 70 of 271
Interface Guide
All the information on materials and board (or sheet) sizes is held in the Board library.
Typically the Board library is maintained manually or with the Stock control module (SC)
stock is updated from optimising and from orders and receipts from suppliers.
With the Bargstedt SQL database and the Stock control module the board library is
synchronised automatically with an external database.
- Updating the board library from an external file (for example, a list of sizes and costs
provided by a supplier)
Select: Stock
Select: Import/Adjust stock from file
Page 71 of 271
Interface Guide
Sometimes it is useful to ignore new stock as it may not be relevant to the Board library.
Page 72 of 271
Interface Guide
A file may contain both new items and updates to existing items in the library.
Note - there is also an option at the Main screen: Stock - Overwrite stock which overwrites
existing stock values rather than adding to them or subtracting from them.
The format for the import file should be one of the following:-
If a ‘User defined’ format is selected also set the name of the Board import parameter file
to use. This file is used to define the format of the external file and match up the fields in
the external file to the Board library fields.
Use the system parameter: Parameters for Import to set the file name.
(See below for details of how to set up the Board library import parameters).
Page 73 of 271
Interface Guide
The result is an updated set of materials, boards and quantities in the Board library.
Board library
Board code - Each board has unique board code for each board size.
3/4V1S-2
1/2PB96x40
MDF18/2
Board sizes - are the length and width of the board. The length is normally the longest
edge of the board but should follow the grain if the board is grained. The width is normally
the shortest edge of the board but should be the edge running against the grain if the
board is grained.
Board quantity - quantity of the board in stock. This is the physical quantity of stock in the
board library.
Quantity - reservations - shows the number of boards already reserved. Reservations act
as a way of reserving boards for future use because the optimisers work on the physical
Page 74 of 271
Interface Guide
quantity minus the reservation. This ensures that there are always the correct boards
available for jobs that are already optimised and waiting to be cut. Only available with the
Stock Control module
Quantity - On order - shows the number of boards ‘On order’, that is, boards that have
been recorded in the ‘Record orders’ section of the Stock control module. Only available
with the Stock Control module
Board cost - cost per square area of material, for example, a cost per square foot or a
cost per square metre.
Board limit - used to restrict the use of each board when the program produces a set of
cutting patterns.
The limit is also used to determine the ratio in which boards are used. For example, to
use two boards sizes in approximately the same proportion 1:1 or 50:50 enter a figure of
‘1’ as the limit setting against each board type. (1, ratio 1:1, 2, ratio 2;1, 3 ratio 3:1). There
are also other settings for sundry or non-optimised parts.
Note - the cost is only overwritten if the cost is set to a value greater than zero and is not
left blank.
Note - there are other descriptive fields for the Board library, such as 'Bin' and 'Supplier'.
These are not used in the BDX format.
Page 75 of 271
Interface Guide
A board list is the list of board sizes used for optimising. This is created automatically
during optimisation by extracting the materials required for parts from the board library.
Board list
It is sometimes useful to create the board list directly (manually or by import), for example,
for 'one-off' jobs where the materials are not in the board library and are not required on a
long term basis. Also it is sometimes necessary to make manual changes to the Board list
to take account of shortages and bypass the values in the Board library.
Page 76 of 271
Interface Guide
To import boards into the board list (NOT into the board library), at the main screen:-
Page 77 of 271
Interface Guide
Page 78 of 271
Interface Guide
Page 79 of 271
Interface Guide
Use the Import parameters to set up the format for the board import file. The Board
options are towards the foot of the dialog.
Page 80 of 271
Interface Guide
For the user defined formats the format is set via the Board import parameters (Main
screen - Parameters - Board import parameters)
These files define how the fields in the external file to import map on to the board library
or board list fields.
Page 81 of 271
Interface Guide
It is possible to create as many parameters files as required; for example, separate files
for different external file formats. If importing to the Board library and to Board lists
different files may be required for each type of import as the external files are likely to be
different.
Use the parameters to describe the format of the external (file to import). A simple ASCII
external file is, for example:-
BRD1,MFC15,2440.0,1220.0,25,18
BRD2,MDF18,2440.0.0,1220.0,30,15
BRD3,MDF18,1830.0,1230.0,10,18
In this example there is one line for each board and the information shown on each
Page 82 of 271
Interface Guide
line is:-
- board code
- material code
- length (millimetres)
- width (millimetres)
- quantity
- thickness
...Code -------------------- 1
...Material -------------------- 2
...Length ---------------------- 3
...Width ----------------------- 4
...Thickness ------------------- 6
...Information ----------------- 0
...Quantity -------------------- 5
Each parameter is a field in the part list and the parameter value is the position
of that field in the external ASCII file. Here is the same data in another format:
25,BRD1,MFC15,2440.0,1220.0,18
30,BRD2,MDF18,2440.0.0,1220.0,15
10,BRD3,MDF18,1830.0,1230.0,18
This is the same data as the first example but the items are now in a different order:-
- quantity
- board code
- material
- width
- length
- thickness
...Code ------------------------ 2
...Material -------------------- 3
...Length ---------------------- 4
...Width ----------------------- 5
...Thickness ------------------- 6
...Information ----------------- 0
...Quantity -------------------- 1
Page 83 of 271
Interface Guide
25,BRD1,MFC15,96-1/2,48
30,BRD2,MDF18,96-1/2,48
10,BRD3,MDF18,72,48-3/4
Note - at the foot of the list that there is a parameter to specify the extension
for the import file; the default is BDX. The path for the file is specified in the
program as the Path for Import
Number of header lines - Enter the number of header lines. Default value is 0 and
the range is 0-99. Only applies when the Import parameter: Board import format
is set for user defined formats.
- The value column specifies a field position in the import file. This can be in
the range 0 to 200. There are less fields to import than this but in some import
files there will be fields that have to be ignored.
- The 'Extension for CSV file' parameter is used to specify the file extension of
the files to be imported.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
Notes
- When importing to a board list the following fields are not used.
Material description
Maximum book height
Page 84 of 271
Interface Guide
The number in brackets shows the maximum length of each field but each field must
also be comma separated and can be shorter than the maximum. Only the first two items
(board code and quantity) are essential the other items are optional.
Material parameter name - stored in the Board library on import. Not used when importing
boards to a board list.
B27/1,250
B28/1,3000
B35/021/009-ASH,-150
B36,0,MFC15,2440.0,1220.0,15.0,42.25,0
SP8,345
Note - not all the fields specified in the BDX format are used when importing into a Board
list (as these fields are not used in the Board list). The fields NOT imported are:-
Page 85 of 271
Interface Guide
For the import of external part lists it is sometimes convenient to also import the board list
at the same time, Quite often the two lists are created together in the external system. At
the import parameters screen:-
The program automatically works out the correct board list name and extension from the
settings for the import type for parts and boards and the extension used (this is either
implied by the import type or taken from the Board import parameters).
Import part format: Part list order – ASCII/Unicode CSV (PNX)
Import board format: Board list order – ASCII/Unicode CSV (BDX)
Part list name: MyBoards.pnx
Board list name: MyBoards.bdx
The Pattern Exchange format is a standard format for describing parts, boards, patterns
and cutting information and can be used for both Import and Export. The file can be either
an ASCII file or an Access MDB database file (the full details for the format are in Section
3).
Page 86 of 271
Interface Guide
The import format is set at the Import dialog (Main screen - File - Import parts (boards) -
File Parameters)
The format for PTX is: Parts & Boards ASCII/Unicode CSV (PTX). The PTX file can
contain both parts and boards. To import (once the format is set):-
Page 87 of 271
Interface Guide
Page 88 of 271
Interface Guide
The PTX format can also be imported from an MDB file:Parts & Boards - Access (MDB).
Page 89 of 271
Interface Guide
Once the format is set Parts and Boards can also be imported from the file tree.
In the example above a section of the ASCII/Unicode PTX file is shown at the right.
Notes
- The File tree extension (PTX) matches the import format setting.
- PTX files can contain more than one part list or board list
Page 90 of 271
Interface Guide
The optimising program usually produces patterns so it is rare to need to import patterns
to the program.
(The main use for the Pattern Exchange format is to export data for patterns to other
systems and machines, or, for manufacturers to use sections of the PTX data for
controlling other production processes).
However, in some cases it is useful to import patterns to the Optimising software, for
example, where special patterns have been created manually and do not need to be
optimised.
Page 91 of 271
Interface Guide
Use the Pattern Exchange format for this import (Main screen - Import patterns - File -
Parameters)
The pattern import parameters are towards the foot of the dialog. Select the one of the
pattern exchange formats, for example: Pattern Exchange – ASCII/Unicode CSV (PTX)
(The other options are for special situations where patterns are imported from other
systems for further processing).
Page 92 of 271
Interface Guide
The screen displays an Import dialog select the pattern exchange file (PTX) to import.
Page 93 of 271
Interface Guide
Page 94 of 271
Interface Guide
The run is the same as any optimised run with summaries and full pattern details.
Page 95 of 271
Interface Guide
Note - import patterns also imports the parts and boards as these are needed for the
patterns.
File tree - also import patterns by selecting the file at the file tree on the main screen
under the branch 'Import patterns'.
Page 96 of 271
Interface Guide
DXF is a common format for part and pattern drawings. To use this format the Optimising
program has to import or read part and pattern drawings in the DXF format and after
optimisation output patterns and machining instructions to a file in a defined DXF format.
- For import use the 'DXF import - layer name rules' to describe the DXF format (Main
screen - Parameters - 'DXF import - layer name rules' )
- For transfer to a machining centre the program uses a pre-defined DXF format (Main
screen - Machine Interface - 2D DXF Nested Layered)
The DXF format is essentially a drawing format describing the geometry of a drawing. The
information for machining (drilling, routing, etc.) is stored separately in different 'Layers'.
Typically there is a layer for drilling, a layer for borders and so on.
Layering - Layering is a mechanism in the DXF format which separates the drawing
elements into series of layers or overlays. Each layer can be identified and its contents
separated from the other layers. The layer names and the layer contents can be chosen
by the user so that is a very flexible way of structuring the information in a DXF file. The
different layer options available are just the different conventions that manufacturers and
users have set up for naming layers and deciding what information is in each layer.
These layers are typically named and defined differently by each user depending the type
and quantity of information they use. Within a DXF file there can also be many other
'Layers' containing information on the drawing or the project which are not used by the
Optimising program.
Page 97 of 271
Interface Guide
Where parts are based on DXF files there are a number of ways of working.
Once the parts are in a part list they can be optimised and transferred to a machining
centre in the usual way.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
Page 98 of 271
Interface Guide
At the part list the DXF parts are now available from the selection dialog.
When using the DXF drawing source (Part list parameters) the setting for 'DXF import -
layer name rules' must also be set to describe the DXF format.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
The item is now stored in the Part library and there is a drawing in the Machining library.
Page 99 of 271
Interface Guide
At the part list the DXF parts in the Part library are now available from the selection dialog.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
At the part list the DXF parts in the Machining library are now available from the selection
dialog.
Machining instructions
For parts processed at a Machining centre the DXF file also contains machining
instructions. This format can be different for each user. Use the 'DXF import - layer name
rules' to describe this format.
Use these parameters to describe the layer structure of a DXF file for machining
information. This information is required if DXF files are used as a source for parts, in the
part list, part library or machining library.
Initially the program prompts to select the folder containing the DXF files. Select the
required folder. This selection is retained for future sessions.
If no names are available or more layer names are required a list of layer names can be
prepared by scanning existing DXF files - for details see: Scan - DXF.
Instruction
Enter the type of instruction stored in the layer name. Some examples of available types
are:-
Vertical drill
Horizontal drill
Saw groove
Circle router
Groove router
Arc router
End groove
Contour
Text
Border
Safety Border
Free form pocket
In the next columns enter the information for Depth, Width, Zstart and Tool where it
applies for each instruction type. This is information that is NOT in the DXF layer but
needs to be set for Machining.
- At the Tool column click on the button to pop up the tool dialog to enter the Tool
information.
The column 'Direction' is for specifying the direction of contours and free form pockets.
This is available where the instruction is a contour or a free form pocket. Enter one of the
following values:-
Blank - contour/pocket direction depends on the way it was drawn in the original DXF
drawing)
CW - contour/pocket is drawn in the machining library in a clockwise direction
CCW - contour/pocket is drawn in the machining library in a counter clockwise direction
Notes
- When transferring a machining drawing in 2D DXF nested layered DXF format any fixed
pockets (not free form pockets) appear on a layer starting with the text 'POCKET'
For the part library and product library a drawing can be associated with each item. The
drawing can be selected from one of several different sources:-
- Machining library
- MPR(X) file
- Drawing library
- External graphics file (BMP, WMF, EMF, JPG)
In this example the part drawing shows a drawing from the machining library.
In this example the product drawing is from an external picture (jpg) file.
- External graphics files are placed in directory set by the system parameter: Path for
pictures. If this path is not set the files are in the directory set by the system parameter:
Path for data
- MPR(X) files are located in the directory set by the system parameter: Path for MPR(X)
files
- Different parts can be linked to the same drawing or there can be a one to one link
between parts and drawings.
The program displays a list of files (from path set by the System Parameter:
Path for data'
If a part code already exists in the part library the program prompts to overwrite
the code or stop the import.
Setup of External files - The file type can be CSV (ASCII/Unicode text file) or the Excel
formats XLS, XLSX; this is set via (Part library screen - File - Parameters). To import an
external file directly to the part library the format of the external file must follow a fixed
layout.
part code
material
description
default length
length
default width
width
grain
quick edge codes
cost
drawing type
drawing code
information boxes
Default length?; default width? - used to set the default check box beside the length
and width fields at the part library
Drawing code - where the drawing type is 0 the drawing code is a file name and
extension, otherwise it is a drawing code
Part lists can also be imported to the part library via the option: Edit - Import from Part
list
At the product library screen there are several options to export data.
- Import product
- Import library
Import product
The program has an option to export data for a single product to a PLE file. This file can
be imported to any product library using this import option.
Import library
This option imports an MDB file and creates the following libraries/tables:
Product library
Part library
Variable table
Lookup table
Formula table
The structure of the MDB file must match the specification for the librar. For details of the
format see the section on 'Export product data'.
When working with Quotes it can be the case that the data is generated elsewhere, for
example in a Sales system.
- Select OK to import
(There are settings to control the import, for example, to set the separator character and
whether to delete import files after import or not).
The requirements file is shown in the File tree at the main screen.
Once the format is set up RQX files can also be imported directly from the File tree.
If importing products, the product code must represent products already set up in the
product library.
Because the contents of a quote / orders file can be so varied and include variables,
information boxes and variable header data, there is no standard format for import.
Instead the format is defined by one or more sets of 'Quote requirements Import
parameters'.
This is set at the Quote Import dialog.
The parameter values are set via the option (Main screen - Parameters - Quote Import
parameters)
There are two main sections to this page. A header section and Item section.
The header section specifies the position in the import files header line, one position for
each header item.
The item section specifies the position in the field in the main body of the file.
For example, the following sample has one header line and three items lines. The header
line fields are ORDER DATE, CUSTOMER CODE, CUSTOMER NAME, DELIVERY
DATE.
They type of item loaded depends on the entry type setting. The following values
determine the item type
Product = 0
Part =1
Free_form/phrases = 2
Fitting = 3
Operation =4
This data structure contains the information that is required for transferring cutting lists to
an optimising package and for transferring optimised cutting patterns with label
information to a panel saw. The data structure can be created in two formats as follows.
Each record type and each field name are in uppercase and use
underscores between separate words. No table name or field name is
more than 10 characters.
JOBS - header data for each job (cutting list or optimised run)
PARTS_REQ - basic requirement details for each item in the cutting list
PTN_UDI - information used to match parts in a strip - one for each strip in
the pattern
CUTS - cutting instructions – occur many times per pattern – once for
each cut required
3. FORMAT
The ASCII version of the file uses standard comma-separated format, and
has the suffix .PTX (PaTtern eXchange). The main part of the filename
could be the job/order number or batch name if the file contains multiple
jobs.
Examples:-
01234.PTX ABC123-1.PTX
Note that the structure allows for the ASCII file to contain more than 1
cutting list or run if necessary, for example it could contain a batch of runs.
Note that there may be restrictions on the file name because some
controllers will, for example, only accept 5 digits for the job number.
The format and size restrictions for each field are tabulated in section 18. Note, that the
limitations (eg. max length of material code) will vary according to the implementation and
specification of the saw.
All ‘index numbers’ must be integer values, starting at 1 for the first record, and
incrementing consecutively up to the maximum specified. Note, in particular that all part,
board, pattern and cutting records must contain the appropriate job index number showing
which job they relate to.
The Access database version stores each record type in a separate table.
The file has the standard extension of MDB.
Examples:
01234.MDB BATCH32.MDB
The header record contains descriptive and global information for the job. This record
appears as a line in the ASCII file. In the Access database this information will be stored
in the database properties.
ORIGIN - This field indicates the origin for the VECTOR drawing records.
The origin for the CUT records is assumed to be 0 (top left).
HEADER,1,“This is an example”,0,0,1
HEADER TABLE
This record contains data about each job contained in the file. These
records are optional and in the absence of job records all parts and
patterns are assumed to belong to the same job.
0 - not optimised
1 - optimised
2 - optimise failed
JOBS TABLE
This record contains data about each different size (or line item) in the
cutting list. This record is used to provide details about each part (over
and above cut sizes).
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number to link this record with other associated part
records
GRAIN –
0 = No grain/part can be rotated,
PARTSREQ,1,1,SD900X,1,890.0,645.5,50,0,2,0,50,0,0,0
PARTSREQ TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records.
PARTSINF,1,2,BOTTOM,1,690.0,475.0,ORD1234,GREY-1MMPVC,,
GREY-1MMPVC,,Edge PG1,Edge PG2,Edge PG3,Edge PG4,GREYLAM,GREYLAM,
MDF18,2X1,BU-SIDE-CNC,BU4DW,4 Dwr Base Unit,600.0,890.0,570.0,1,1,
0690004750,0012301,WHITE-ASH-325,700.0,485.0
PARTSINF TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records
INFOn
There are up to 60 information fields. The name of each field is INFO
followed by the field number. The fields may be used for any purpose
such as customer details, dates, CNC operations, and other items not
included in the other part records.
PARTSUDI TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records
PARTSDST,1,3,3,2,1,30,600,…
PARTSDST TABLE
1 3 3 2 1 .....
JOB_INDEX - Index number used to link this record to other records for
this job.
CODE – Board code - usually the stock code for the sheet size.
COST - Cost per sq. metre or sq. foot according to measurement unit
GRAIN –
0 = No grain,
1 = grain along the length of the board
2 = grain along the width of the board
TYPE –
0 = Stock board
1 = Offcut
2 = Automatic offcut
BOARDS,1,1,WLAM15MM-1,1,2550.0,1525.0,100, 7,
8.50,0,Inf,,0,0,Bin,,Inf
BOARDS TABLE
These records define the different material types. There should be a least
one of these records in data structure. This record is used to pass a
detailed material description, the thickness and other parameters which
may vary according to material type.
JOB_INDEX - Index number used to link this record to other records for
this job.
TRIM_FRIP - Fixed rip trim – includes saw kerf (saw blade thickness) –
amount sheet size is reduced by
TRIM_HEAD - Internal head cut trim – includes saw kerf (saw blade
thickness)
TRIM_FRCT - Fixed recut trim – includes saw kerf (saw blade thickness)
GRAIN –
0 = No grain,
1 = grain along the length of the board
2 = grain along the width of the board
The saw kerf (saw blade thickness) and trims are optional. Note that it is
assumed that one of the two rip trims will be constant and the other rip
trim includes the waste strip. Either (a) the leading edge is trimmed and
the waste strip comes out last, or (b) the waste strip is removed by the first
rip and the last rip is a constant trim. This assumption also applies to
cross cut trims and recut trims.
MATERIALS TABLE
This record is optional and holds any messages or notes that need to be associated with
a job, for example customer details, special instructions, etc, or any details that are job
related rather than part or material related. As many lines as required can be stored for
each job.
NOTES TABLE
This record is optional and can occur once for each different off-cut size
per material created by the cutting patterns.
JOB_INDEX - Index number used to link this record to other records for
this job.
GRAIN –
0 = No grain,
1 = grain along the length of the offcut
2 = grain along the width of the offcut
COST - Cost per sq. metre or sq. foot according to measurement unit
TYPE –
1 = Offcut
2 = Automatic offcut
OFFCUTS TABLE
This record occurs once per pattern. It is used to describe header detail
for the pattern, such as board size used, number of sheets to be cut etc.
JOB_INDEX - Index number used to link this record to other records for
this job.
TYPE - determines the direction of the first cut, and the type of pattern
Fixed Pattern
0 = rip length first – non-head cut pattern
1 = turn board before ripping - non-head cut pattern
2 = head cut pattern – head cut across width
3 = head cut pattern – head cut along length
4 = crosscut only
Template Pattern
5 = Create master part - divide at saw
6 = Create master part - divide at machining centre
7 = Cut parts in main pattern
8 = Cut parts in separate pattern
PATTERNS,1,1,2,0,20,4,5,“Pattern1”
PATTERNS TABLE
These records are used to indicate the matching information used when
inserting parts in a strip. This record only applies when all parts in the strip
must have the same information.
JOB_INDEX - Index number used to link this record to other records for
this job.
These records define each cut for the saw and determine the parts
produced by each cut. This is used, for example, so that the correct labels
can be printed at the saw in synchronisation with the cutting.
JOB_INDEX - Index number used to link this record to other records for
this job.
PTN_INDEX - Index number used to link this record with pattern records
CUT_INDEX - Sequential index number starting at 1 for each new pattern and
incrementing by 1 for each cut
QTY_PARTS - Quantity of this part produced by this cut for all cycles of
this pattern.
Some cuts produce several parts with different item numbers because
although the parts may have the same size they will be labelled uniquely.
This occurs when cutting multiple sheets in a book where the parts on
different sheets have different item numbers. These duplicate parts are
represented with dummy CUTS records showing the part index and part
quantity but a zero dimension and zero cut quantity.
When cutting exact fit patterns (e.g. no trims, strip fits exactly in length of
the board) some cuts will produce two parts side by side (e.g. the last
cross cut in a strip). If this is the case the cut quantity of the last part will
be set to zero, the dimension remains unchanged. Note that it is important
that these records have a dimension so as to differentiate them from the
dummy cut records for duplicate parts.
The QTY_PARTS field allows for the display of the correct part quantities
for duplicate parts. In a pattern with run quantity 20, and cut 6 sheets at a
time, then there will be 4 cycles or books (3 with 6 sheets and 1 with 2
sheets). Say the first part in the top left corner is a mixture of 14 parts
item 1, and 6 parts item 2. The first book at the appropriate cut will
produce quantity 6 labels of item 1, the second book also 6 of 1, the third
book will produce 2 labels of item1 and 4 of item 2, and the last book will
give 2 of item 2. In this example, the CUTS records would show two cut
lines, item 1 quantity 14, and item 2 quantity 6. The saw takes care of
counting the cycles.
Note that the Sequence number will increment by the repeat quantity for that cut. In
example below, CUTS 1,1,2 has repeat 3, indicating three cuts, so sequence number 4
implies 4/5/6 and the next sequence number is incremented by 3.
The 6th CUTS record defines a waste strip 30.4 mm wide, the total width
of the waste gap between the 500mm strip and 200mm strip is 40mm
(30.4+4.8+4.8).
CUTS TABLE
JOB_INDEX - Index number used to link this record to other records for
this job
The origin of the drawing is defined in the HEADER record. The x and y
positions specify the distance to include the saw kerf (saw blade
thickness), away from origin. So, a 10 mm trim would result in a vector at
x=10, where if saw kerf is 4.5, then waste removed is 5.5. The position for
cuts producing parts must include all saw kerfs. Note that unlike the CUT
records where all dimensions are relative, in these records all dimensions
are absolute values.
Notes in italics are for information only and not part of the file.
VECTORS,1,1,1,0.0,0.0,3660.0,10.0
VECTORS,1,1,2,0.0,315.0,3660.0,315.0 - rip 300 wide strip -absolute dimension
VECTORS,1,1,5,5.2,10.0,10.0,315.0
VECTORS TABLE
JOB_INDE PTN_INDEX CUT_INDEX X_START Y_START X_END Y_END
X
1 1 1 0.0 0.0 3660.0 10.0
1 1 2 0.0 315.0 3660.0 315.0
1 1 5 5.2 10.0 10.0 315.0
Notes in [] are for information only and not part of the file.
Filename = A123.PTX
BOARDS,1,1,WHLAM15MM-1,1,2550.0,1525.0, 436,6,2.540,0,Bin
1,,0,0,,,
BOARDS,1,2,WHLAM15MM-2,1,3660.0,1830.0, 178,1,2.430,0,Bin
1,WLAM15-1,0,0,,,
BOARDS,1,3,MDF18-97, 2,2440.0,1220.0, 371,3,4.320,0,Bin
2,,0,0,,,
[definition of materials]
MATERIALS,1,1,WHITE15,“White laminated chipboard 15mm”, 15.0, 4,
4.8,4.8,10.0,0.0,10.0,0.0,5.0,10.0,10.0,4,1,1,0,WLAM15,0,
RGB(255:255:255),0.900
MATERIALS,1,2,MDF18, “Medium density fibreboard 18mm”, 18.0, 3,
4.8,4.8,10.0,0.0,10.0,0.0,5.0,10.0,10.0,4,1,1,0,,0,
RGB(220:17:130),0.650
[patterns]
PATTERNS,1,1,1,0,2,1,2,83,83 [Job 1, Pattern 1, Board 1, Long
rip, Qty 2]
PATTERNS,1,2,1,1,3,1,3,128,128 [Job 1, Pattern 2, Board 1, Short
rip, Qty 3]
PATTERNS,1,3,1,0,1,1,1,204,204 [Job 1, Pattern 3, Board 1, Long
rip, Qty 1]
PATTERNS,1,4,2,2,1,1,1,414,414 [Job 1, Pattern 4, Board 2, Head
cut, Qty 1]
PATTERNS,1,5,3,2,2,1,2,301,301 [Job 1, Pattern 5, Board 3, Head
cut, Qty 2]
PATTERNS,1,6,3,2,1,1,1,302,302 [Job 1, Pattern 6, Board 3, Head
cut, Qty 1]
[cuts]
CUTS, 1, 1, 1, 0, 0,2550.0, 0, 0, 0,MAIN [cut record for job 1,
pattern 1]
CUTS, 1, 1, 2, 1,91, 5.2, 1, 0, 0
CUTS, 1, 1, 3, 2, 1, 725.0, 1, 0, 0,RIP [1 rips at
725 mm]
CUTS, 1, 1, 4, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 5, 5, 2,1200.0, 2, 1, 4 [xcut at 1200 producing
part1]
CUTS, 1, 1, 6, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
part 5]
CUTS, 1, 3, 15, 0,94, 5.2, 0, 0, 0
CUTS, 1, 3, 16, 0,93, 30.4, 0, 0, 0
CUTS, 1, 3, 17, 0, 2,1140.4, 0, X2, 1 [cut 9 also produces off-
cut 2]
CUTS, 1, 3, 18, 4, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 19, 15,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 20, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 21, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 22, 5, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 23, 15,92, 5.2, 1, 0, 0
CUTS, 1, 3, 24, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 25, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 26, 0,91, 45.8, 0, 0, 0
19. EXAMPLES
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Trim 5.2 1
Trim 5.2 1 Cross cut 1200.0 2 P1
Rip 725.0 2
725 mm]
CUTS, 1, 1, 4, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 5, 5, 2,1200.0, 2, 1, 4 [xcut at 1200 producing
part1]
CUTS, 1, 1, 6, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
CUTS, 1, 1, 7, 3, 1, 725.0, 1, 0, 0,RIP [1 rip at
725 mm]
CUTS, 1, 1, 8, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 9, 5, 2,1200.0, 2, 1, 4 [crosscuts at 1200 producing
part 1]
CUTS, 1, 1, 10, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
CUTS, 1, 1, 11, 0,91, 55.4, 0, 0, 0 [falling waste width
55.4mm]
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Rip 1272.6 1
Trim 5.2 1 Trim 5.2 1
Rip 1200.0 1 Cross cut 600.0 1 P3
Trim 5.2 1 Cross cut 725.0 1
Cross cut 725.0 1 P1 Recut 5.2 1
Cross cut 725.0 1 P2 Recut 1200.0 1 P2
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Recut 5.2 1
Trim 5.2 1 Recut 200.0 1 P9
Rip 600.0 1 Recut 200.0 1
Cross cut 1250.0 1 P3 Recut 5.2 1
P3 Recut 580.0 1 P5
Rip 450.0 1 Rip 200.0 2
Trim 5.2 1 Trim 5.2 1
Cross cut 790.0 1 P4 Cross cut 580.0 4 P5
Cross cut 630.0 1
CUTS, 1, 3, 4, 6, 2,1272.6, 1, 3, 1
CUTS, 1, 3, 5, 0, 2,1272.6, 0, 3, 1
CUTS, 1, 3, 6, 3, 1, 450.0, 1, 0, 0,RIP
CUTS, 1, 3, 7, 7,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 8, 8, 2, 790.0, 1, 4, 1 [cross cut producing part 4
x 1]
CUTS, 1, 3, 9, 9, 2, 600.0, 1, 0, 0
CUTS, 1, 3, 10, 10,93, 5.2, 1, 0, 0 [recut
trim]
CUTS, 1, 3, 11, 11, 3, 200.0, 1, 9, 1
CUTS, 1, 3, 12, 12, 3, 200.0, 1, 0, 0
CUTS, 1, 3, 13, 13,94, 5.2, 1, 0, 0 [4th phase recut
trim]
CUTS, 1, 3, 14, 14, 4, 580.0, 1, 5, 1 [4th phase cut to produce
part 5]
CUTS, 1, 3, 15, 0,94, 5.2, 0, 0, 0
CUTS, 1, 3, 16, 0,93, 30.4, 0, 0, 0
CUTS, 1, 3, 17, 0, 2,1140.4, 0, X2, 1 [cut 9 also produces off-
cut 2]
CUTS, 1, 3, 18, 4, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 19, 15,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 20, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 21, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 22, 5, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 23, 15,92, 5.2, 1, 0, 0
CUTS, 1, 3, 24, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 25, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 26, 0,91, 45.8, 0, 0, 0
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 2979.4 1 Cross cut 790.0 3 P4
MAIN Cross cut 580.0 1
Trim 5.2 1 Recut 5.2 1
Rip 600.0 1 Recut 200.0 2 P5
Trim 5.2 1 Rip 200.0 3
Cross cut 1272.6 2 P3 Trim 5.2 1
Cross cut 200.0 2 P9 Cross cut 580.0 3 P5
Rip 450.0 1 Cross cut 630.0 2 P9
Trim 5.2 1
3 x 2]
CUTS, 1, 4, 6, 11, 2, 200.0, 2, 9, 2 [2 xcuts producing part
9 x 2]
CUTS, 1, 4, 7, 0,92, 5.0, 0, 0, 0
CUTS, 1, 4, 8, 4, 1, 450.0, 1, 0, 0,RIP
CUTS, 1, 4, 9, 13,92, 5.2, 1, 0, 0
[xcut trim]
CUTS, 1, 4, 10, 14, 2, 790.0, 3, 4, 3 [3 xcuts producing part
4 x 3]
CUTS, 1, 4, 11, 17, 2, 580.0, 1, 0, 0
CUTS, 1, 4, 12, 18,93, 5.2, 1, 0, 0
[recut trim]
CUTS, 1, 4, 13, 19, 3, 200.0, 2, 5, 2 [3rd phase cuts producing part
5 x 2]
CUTS, 1, 4, 14, 0,93, 30.4, 0, 0, 0
CUTS, 1, 4, 15, 0,92, 0.2, 0, 0, 0
CUTS, 1, 4, 16, 5, 1, 200.0, 1, 0, 0,RIP [first of 3 strips xcut
together]
CUTS, 1, 4, 17, 21,92, 5.2, 1, 0, 0
[xcut trim]
CUTS, 1, 4, 18, 22, 2, 580.0, 3, 5, 3 [3 xcuts producing part
5 x 3]
CUTS, 1, 4, 19, 25, 2, 600.0, 2, 9, 2 [2 xcuts producing part
9 x 2]
CUTS, 1, 4, 20, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 21, 6, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 4, 22, 21,92, 5.2, 1, 0, 0
CUTS, 1, 4, 23, 22, 2, 580.0, 3, 5, 3 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 24, 25, 2, 600.0, 2, 9, 2 [xcuts with same sequence as
record 19] CUTS, 1, 4, 25, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 26, 7, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 4, 27, 21,92, 5.2, 1, 0, 0
CUTS, 1, 4, 28, 22, 2, 580.0, 3, 5, 3 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 29, 25, 2, 600.0, 2, 9, 2 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 30, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 31, 0,91, 146.0, 0, 0, 0
CUTS, 1, 4, 32, 0, 0, 675.8, 0, X1, 1,HEAD [offcut
produced]
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 1415.0 1 HEAD 1
MAIN Trim 5.2 1
Trim 5.2 1 Rip 650.0 1
Rip 300.0 2 Trim 0.2 1
Trim 5.2 1 Cross cut 275.0 3 P7
Cross cut 1400.0 1 P6 Rip 230.0 2
Rip 275.0 2 Trim 0.2 1
Trim 5.2 1 Cross cut 480.0 2 P8
Cross cut 650.0 2 P7
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 1464.6 1 Cross cut 480.0 3 P8
MAIN Head cut 480.0 1
Trim 5.2 1 HEAD 1
Rip 300.0 1 Trim 5.2 1
Trim 5.2 1 Rip 230.0 5 P8
Cross cut 1400.0 1 P6 HEAD 2
Rip 400.0 1 Trim 5.2 1
Trim 5.2 1 Rip 480.0 2
Cross cut 480.0 3 P10 Cross cut 230.0 2 P8
Rip 230.0 2
Trim 5.2 1
This section summarises the position and format of each field in each
record type. The maximum length of each text field is listed in the
comment column. The range of acceptable values for other field types is
listed where applicable. Please refer to earlier comments for a fuller
explanation of fields.
Note that spaces are not allowed in the material code, and any spaces will be converted
to an underscore (‘_’) on import. Also note that material, part and board codes are
converted to upper case on import.
The job records must have unique job index numbers starting at 1, and
incrementing consecutively within specified range. The part, board and
pattern records must each have their respective index numbers unique
within the job, and again be numbered from 1 and incremented
consecutively.
'HEADER' RECORD
'JOBS' RECORD
'PARTS_REQ' RECORD
'PARTS_INF' RECORD
'PARTS_DST' RECORD
'BOARDS' RECORD
'MATERIALS' RECORD
'OFFCUTS' RECORD
'PATTERNS' RECORD
'PTN_UDI' RECORD
'CUTS' RECORD
4. Export data
The main use for export is to send results (optimisations) to an external file or system.
Individual reports (for example, Pattern summary) can be exported at the screen view or a
complete set of results can be exported. Other typical exports are:-
Export runs
The program prompts for the summaries to export and also the type of data to include.
Summaries to Export
In some cases items such as the headings, sub headings and Totals are not required -
these can be easily excluded.
In the case of Excel, for example, the reports are sent to a single file with each summary
on a separate spread sheet tab.
For Export to an ASCII file each report is sent to a separate ASCII file with the data types
identified by a token at the start of each line. Here is an example of the board summary
data.
%1,DEMO USER 1,Modular V12.0,Tuesday 23 November 2021
%1,Board summary,Kitchen layout
%1,,00009/BSR CD-81/BSR CD-81/?DEFAULT/?DEFAULT/5
%1,No,Board,Length,Width,Information,Qty in Stock,Qty Used,Length m,Area m2,Cost
Rate,Total Cost
%2,HARDBOARD-4MM* Hardboard 4mm Thickness 4.0 Book 8 Parameters HBD04
%3,1.,HARDBOARD-4MM/01,2000.0,1000.0,Spec. Order,795,2,,4.00,0.890,3.56
%3,2.,HARDBOARD-4MM/02,2440.0,1220.0,BIN 133,131,6,,17.86,0.750,13.40
%4,,,,,,,8,,21.86,,16.96
%2,MED-DEN-FIBRE-18MM Medium Density Fibreboard 18mm Thickness 18.0 Book 5
%3,3.,MED-DEN-FIBRE-18MM/01,3660.0,1550.0,BIN 127,1090,2,,11.35,4.500,51.06
%3,4.,MED-DEN-FIBRE-18MM/02,2440.0,1220.0,BIN 128,767,12,,35.72,4.350,155.39
%4,,,,,,,14,,47.07,,206.45
The export choices can be set at the Review runs parameters dialog.
At any Review runs screen:-The data to export for each report can be customised for
each report (Review Runs – Settings – Export settings). With these options you can
design a specific layout and set of data for the exported report which can be different to
the report on-screen.
There is also an option on the File menu to select a default set of reports to export (very
often you do not need to export all the available reports.
Pattern images - at any on-screen pattern there is an option to export the pattern image.
The formats available are:-
Part costing
Product costing
Fittings
Operations
Board library data
Part library data
It is sometimes useful to export the cutting list (for example where it is changed for edging
and laminating and the sizes are used elsewhere in production).
This export is included in the optimisation provided the option is chosen in system
parameters.
The program creates files in the PNX and BDX (for board sizes) formats.
To export the part costing or product costing summary to an external file. Select:-
- Print
- Part costing (or Product costing)
Select the part list and the Export option and select OK. An export file is created, for
example:-
The export files are placed in the directory set by the System parameter: Path for Export
data
The data type for each line in the export file is shown by a % and number at the beginning
of each line. Select which data types to export in the Review runs parameters.
Export fittings or operations reports for any optimisation (run). Move to the fittings or
operations report in Review runs.
ASCII export - the data is exported to a file with the same name as the fitting or operations
list with the report letter appended and extension exd (e.g. BSR81-CDU.exd for fittings).
The export files are placed in the directory set by the System parameter: Path for Export
data
Export cutting lists and boards lists as part of the optimisation or recalculation process.
To do this set the System parameter: Create data for to create to one of the following:-
These options produce cutting lists and/or board lists in an ASCII/Unicode format. This is
useful if the lists are going to be used by other systems.
The export occurs automatically when the part list is optimised. The ASCII/Unicode format
is the PNX and/or BDX format.
Kitchen layout
DEFAULT
DEFAULT
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000449*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000450*
BASE-BACK,HARDBOARD-4MM,876.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,876.0 x
735.0,00000451*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000452*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000453*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000454*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000455*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000456*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000457*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000458*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,564.000000,581.000000,3,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,564.0 x 582.0,00000459*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000460*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000461*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000462*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000463*
BASE-CABINET-BOTTOM,MED-DEN-FIBRE-18MM,864.000000,581.000000,1,0,0,0,0,0,0,0,OAK-
TAPE-22MM,,,,,,,864.0 x 582.0,00000464*
BASE-CABINET-DIVIDER,MED-DEN-FIBRE-
18MM,559.000000,533.250000,1,0,0,0,0,0,0,0,,,OAK-TAPE-22MM,,,,,560.0 x
533.3,00000465*
BASE-CABINET-DOOR,MFC18-OAK,398.000000,554.750000,1,0,0,2,0,0,0,0,OAK-TAPE-
22MM,OAK-TAPE-22MM,OAK-TAPE-22MM,OAK-TAPE-22MM,,,,400.0 x 556.8,00000466*
.....
HARDBOARD-4MM/01,795,HARDBOARD-4MM,2000.000000,1000.000000,4.000000,0.890000,9
HARDBOARD-4MM/02,131,HARDBOARD-4MM,2440.000000,1220.000000,4.000000,0.750000,0
MED-DEN-FIBRE-18MM/01,1090,MED-DEN-FIBRE-
18MM,3660.000000,1550.000000,18.000000,4.500000,0
MED-DEN-FIBRE-18MM/02,767,MED-DEN-FIBRE-
18MM,2440.000000,1220.000000,18.000000,4.350000,0
MFC18-OAK/01,430,MFC18-OAK,3050.000000,1220.000000,18.000000,3.300000,0
MFC18-OAK/02,111,MFC18-OAK,2440.000000,1220.000000,18.000000,2.970000,0
WHAC12/01,436,WHITE-ACRYLIC-12MM,2440.000000,1220.000000,12.000000,1.320000,4
The other options for 'Export cutting list format' are for special situations where part list
are exported after processing to other systems.
The Pattern exchange format contains all the part sizes, board sizes, parameter settings,
cutting instructions and drawing information for a run and most of the summary data. Use
this to export optimisations (runs) for use by other systems such as a spread sheet,
database, or report generator.
This is the program's proprietary format for patterns (results). It is used by several
manufacturers where they want pick up information from the optimisation results (cutting
patterns).
All the pattern data and structure is contained in the file in ASCII/Unicode or MDB
database format - so it is very useful where custom changes are needed for controlling
specific machines or external systems. For example, to update stock control systems, use
a special post processor to transfer to a saw.
In this case the ‘export’ occurs as part of the saw or machine transfer process. This is set
up as a transfer mode (transfer option) at the Saw Transfer parameter screen.
Quite often both the standard .saw file and the .ptx file are used by a manufacturer. In this
case both files can be exported in a single command by grouping. This option is also
available for transfer to Machining centres.
At the main screen select the Run to transfer and then the transfer method.
In this case the file is located in the ‘Path for Saw data’.
It is sometimes useful to export the entire contents of the board library to an external file,
for example, to update a supporting system. At the Board library screen:-
BDX format
This is a special format for Boards; one line per board including material information. It
can be useful for external processing and data can also be re-imported to the Board
library via the Import options with this format. BDX is the current format.
The data can either be exported to a Fixed file (BRDLIB.BDX) in the directory set by the
System parameter: Path for export data or to a selected file path and name.
It is sometimes useful to export all the Part library data, for example, for updating external
systems. At the Part library screen:-
The library data is exported to a comma separated value file with a fixed name.
PARTLIB.CSV
The file is located in the folder set by the System parameter: Path for Export data
If the parameter setting is blank or there is some other problem with the file an
error is reported.
File format
Each line contains a record from the part library. The order of the fields is as
follows:-
Code
Material
Description
Length
Width
Grain
Edge
Cost
Drawing code
Information boxes
Notes
0=No
1=Yes
2=X
3=Variable
- Quick/Short edge codes are exported as one 4 digit field (e.g. 0000)
- Grain and edge fields are blank for fitting and operations and the cost field is
blank for parts.
At the product library screen there are several options to export data.
- Export product
- Export library
- Export product list
Export product
The export product option is used to export a single product from the library, which
includes the part details and any variables, formulae or lookups used.
When the option is selected a .PLE file is created in the path for export data based on the
name of the currently selected product.
This file can then be subsequently imported into another user profile or into the same user
profile if the product is modified and needs to be reset.
Export library
Products - Contains product details (not the part grid at the bottom of product library)
Subassemblies - Contains the subassembly details (not the part grid information)
Parts - Contains the part details from the part library
ProductParts - Contains which parts appear in which products (part grid information)
ProductSubs - Contains which subassemblies appear in which products (part grid inf.)
SubParts - Contains which parts appear in which subassemblies (part grid inf.)
Products
Code, Description, Width, Default width, Height, Default height, Depth, Default depth,
VerticalPos, DefaultVerticalPos, Drawing, Planview, Elevationview, Price, AnswerTable,
Memo1 to Memo10
Subassemblies
Code, Description, Width, Default width, Height, Default height, Depth, Default depth,
Drawing
Parts
Productparts
ProductSubs
SubParts
Variables
Formulae
Lookups
A line is produced for each product in the library with the fields in the following
order:
The drawing name field contains the sketch name, not the plan or elevation names.
This field can be blank (empty) but there may still be a product drawing which matches
the product name.
The product variables and default answers repeat as many times as required. Default
answers are taken from the variables table. If there is no default answer, the answer
field is blank (e.g. @variable1@,,@variable2@...). Global variables will appear
in the list against each product.
If a product contains parts / machine drawings which have variables, these variables
also appear in the list. This also applies to variables which occur in formulae
or look-ups which occur in the product, parts or machine drawings.
Sub-assemblies and accessories are not exported. The list of parts that comprise
a product are also not exported.
This option lists where variables names are used across the product library, part
library, machining library and drawing library. At the main screen:-
CSV
XLS
XLSX
If the file already exists the program prompts to overwrite the file.
The file is located in the 'Path for Export data' the file name is based on the date.
e.g. VARDEPLIST 2015-11-19 1420.xls
The file line of the file contains the following 5 text headings:
The following lines list all the places where a variable is used, for example:-
1. BASE-CABINET,,, BCAB1
This means the variable BCAB1 is used in the product BASE-CABINET (and not in any
part, machining or drawing)
2. BASE-CABINET,BASEPART1,,BCAB2
This means variable BCAB2 is used in product BASE-CABINET and part BASEPART1,
but not in a machining item or drawing.
3. BASE-CABINET,,MCH1,,BCAB3
This means variable BCAB3 is used in product BASE-CABINET and machining drawing
MCH1, but not in a part or a drawing
4. ,TPART1,,,VAR2
This means the variable VAR2 is not in any product, machining item or drawing but is
used in part TPART1.
The first items in the file are based on product variables and below (parts belonging to the
product and associated drawings), then variables used for any remaining unused parts
and below, next any remaining machining drawing and finally any remaining drawing
library items.
Optimising program setup - stand alone operation is a way of running the program with
no operator input BUT a lot of information still comes from the Optimising program which
has to be set up in the usual way. That is, parameters set and co-ordinated, boards and
materials available in the Board library, drawings available in the Machining library etc.
Make sure that the operations work using the FULL program before attempting to create
the stand alone operation
Instructions - these are specific for each stand alone item so follow the examples
carefully .
A typical task is to import parts from a PTX file as a stand alone operation. Run the
program IMPORT.EXE from a user profile. This can be from a batch file or from a
shortcut or by using the Windows option Start - Run. For example, using a Windows batch
file the commands are:-
User profile - It is important to run the program from a user profile to locate the system
parameter settings for paths and other values required.
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file IMPORT.ERR
Using program Import services with other systems via the command line or a batch file
The stand alone import mode of the import program allow users to specify Unicode format
files by using /UTF-8 or /UTF-16LE on the command line
Format
/FORMAT:nn
16 - BDX format
17 - Board list - User defined order ASCII/Unicode CSV
20 - XLS parts
21 - XLSX parts
30 - XLS boards
31 - XLSX boards
For example:
When using /FORMAT the program runs in silent mode (same as /AUTO) and any errors
are sent to a .ERR file.
Delete
/DELETE
Overwrite
/OVERWRITE
Only applies to types 12 and 15. /OVERWRITE command means overwrite all existing
files.
Rename
/RENAME
Batch name is allocated a unique number from the same series as quotes/requirements
(sonumber.ctl). The part list names are created by using the first five digits of the batch
number and the first 3 characters of the job list name.
00004.BTC
00004WRK.PRL
00004NST.PRL
It is important to ensure that, when using this option, the first three characters of each job
name are unique within that PTX file. You cannot have, for example, 'BSR10' and 'BSR15'
as job names unless these are placed in separate PTX files.
Silent
/AUTO
Alternative commands
These commands can be used as an alternative to the FORMAT command. When using
these commands the relevant import parameter is used for the import format and the
System parameter: Path for import data must be set
Errors - When you work with a command like '/AUTO' so that a program runs in 'silent'
mode this means that the usual method of reporting errors is not available because the
on-screen list of errors cannot be displayed. Any errors are stored in the file
IMPORT.ERR
Delete product requirement import files - these can be deleted after import. This is done at
the Import - Requirements dialog box. Check the box 'Delete files after import'.
Import files can also be deleted when running the program in the stand-alone mode. Use
argument /DELETE to give the command line:
User defined
/UDF
Where there is an import parameter for user defined parts or boards the parameter file
can be specified on the command line with the UDF option.
Where the file name includes spaces the name must be enclosed in quotes.
The /UDF argument only applies if /FORMAT:6 or /FORMAT:7 are also set.
Separator
/SEP:<separator>
/SEP:58
/SEP:":"
The separator is either the decimal Ascii number or the character enclosed in quotes
The separator can be any ASCII code between 32 and 127 except the following (0 to 9, A
to Z or a to z).
/NOWRTBRD
Stops the program deleting the existing board list - this allows the program to re-use a
board list.
Using program Output services via the command line or a batch file to print or export data
This allows printing or export of runs / summaries. There are several different options
available:-
/PRINT - print
/EXPORT - export to ASCII files
/EXPORT /MDB - export to Access database
Printing
For example:-
For example:-
For example:-
Export to XLS/XLSX
Errors
A Batch Summary
B Management Summary
C Pattern Summary
D Part Summary
E Board Summary
F Offcut summary
G Distribution summary
H Input summary
I Destacking summary
J Pattern drawing
K Part sizes for pattern
L Cutting dimensions
M Pattern preview
N Edging summary
O Material summary
P Machine times
Q Saw loading summary
R Station summary
T Job costing
U Fittings
V Operations
Y Sundry parts
1 Nested Preview
2 Nested Drawings
3 Saw simulation
4 Nested pieces
5 Nested parts
6 Batch material summary
The location of exported files can be temporarily overridden when exporting review
runs data by using the OUTPUT program in stand alone mode.
The command line argument is /EXPORTPATH followed by the path for export data. This
path can also be a UNC path, for example:-
If a path contains spaces then the path must be surrounded with quotes, for example:
If the path specified is not valid the export does not take place
Send to PDF
Send to PDF
'/PRINT' is not needed if '/PDF' is used. To use PDF there must be at least one printer
driver installed on the system.
A typical task is to export some of the reports to an ASCII file Run the program
OUTPUT.EXE from a user profile. This can be from a batch file or from a shortcut or by
using the Windows option Start - Run. For example, using a Windows batch file the
commands are:-
In this example the reports exported are the Pattern Summary (C) and the Part summary
(D). The current run is used unless the /RUN option specifies a different run.
User profile - It is important to run the program from a user profile to locate the system
parameter settings for paths and other values required.
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file OUTPUT.ERR
Note - If these commands are to be run from the Auxiliary menu then the equals sign
should be replaced with a colon.
Board library
BOARD [ /BDX]
This creates the file brdlib.bdx in the path set by the system parameter: Path for Export
data
..\BOARD /BDX
The program should be run from a 'User profile' either by running the program from
that profile (with the Windows Run command or a Batch file) or by setting the 'Start
in' option on a shortcut.
CD \USER1
C:\USER1\BOARD.EXE /BDX
Part library
Use the /EXPORT command line argument. This creates a file: PRTLIB.csv
c:\V12\PARTS.EXE /EXPORT
Product library
Use the /EXPORT command line argument. This creates a file: MPRODLIST.csv (for
millimeters) or IPRODLIST.CSV (for inches).
c:\V12\PRODLIB.EXE /EXPORT
Many operations such as optimising work as a batch operation - even if, for example, only
one cutting list is optimised.
For stand alone operation you often need to run the batch process - the following are the
instructions to achieve this.
filename - the name of the file to apply batch operations to. Batch file (filename.BTC),
part list (filename.PRL), or cutting list (filename.CTT).
Square brackets [ ] indicate that the command is optional. If no filename is specified the
current batch is used.
For example:-
For example:
A batch file to import parts from a pattern exchange file (ptx) , optimise the batch and
transfer information to the saw and machining centre.
Note - during optimisation any cutting lists or board lists that do not exist are automatically
created.
If no name is specified for a batch optimisation (e.g. BATCH.EXE /AUTO /OPTIMISE), the
current batch is used and any cutting lists that do not exist for the batch are created.
If a filename is specified for a batch optimisation but there is no file extension the program
looks for <filename>.BTC first, <filename>.CTT next and <filename.PRL last. If none of
these exists, an error message is placed in the error file (!.ERR)
The system of automatically dividing cutting lists that apply when optimising from the part
list program also applies for BATCH.EXE standalone optimising. This is based on the
'Optimise options' and 'Category for part list divide' system parameters.
To perform the auto-divide the command line for BATCH.EXE needs the file name with
extension
e.g.
BATCH.EXE 84326.CTT /AUTO /OPTIMISE
If no file is specified the optimisation uses the current batch which is created by the import
process and this is not divided. If no extension is specified (e.g. “84326”) the optimisation
will also read and optimise the batch file (btc) with that name and will not auto-divide.
The above assumes that the cutting lists exists, if it does not then the extension PRL
should be used
e.g.
BATCH.EXE 84326.PRL /AUTO /OPTIMISE
Import user defined parts - import parameter file for user defined parts can be specified on
the command line. This is handled with the /UDF command line argument.
This uses the user defined format 02 which has .IMP as its file extension. Errors are
output if the user defined format file does not exist.
The /UDF argument only applies if /FORMAT:6 or /FORMAT:7 is used, any other format
will generate an error message.
Import user defined product requirements - The /UDF command line argument can also
be used to specify the product requirement import parameter file when import products.
Remaining parts - in /AUTO mode there is no dialog to save any remaining or invalid parts
(if they exist). Invalid parts are reported in the error file.
- For stand alone operation - the parameter 'Prompt before modifying existing list'
parameter is ignored and all board lists are updated if possible.
A Windows batch file to import parts from a pattern exchange file (ptx) , optimise the
batch and transfer information to the saw and machining centre.
..\IMPORT %1 /FORMAT:8
..\BATCH /AUTO /OPTIMISE
..\SAWLINK /AUTO /1
Note - during optimisation any cutting lists or board lists that do not exist are automatically
created.
%1 is the usual Windows batch command line variable which is a place holder for the file
name.
User profile - It is important to run the programs from a user profile to locate the system
parameter settings for paths and other values required
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file !.ERR
Ignore errors
/IGNOREBRDERR
This can be useful where the list contains boards of zero dimension ( 0 x 0 ) which
remain in the board list, for example, when using combination materials.
Using program Stock control services via the command line / batch file
Import stock
filename - file with stock information. This must include the correct file extension.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
The Unicode format of files can be configured for stock import into the board library by
using either /UTF-8 or /UTF-16LE on the command line.
e.g. STOCK MyBoards.bdx /IMPORTSTOCK /UTF-8
The format can be set via the System parameters in the user profile or via the
/FORMAT switch. The format must match the file name extension.
0 - BRD format
1 - BDX format
2 - Bargstedt stock file BESTAND.STK
3 - External SQL database
4 - User defined order – ASCII/Unicode CSV
5 - User defined order - Excel XLS
6 - User defined order - Excel XLSX
To also add any new stock (Board and offcuts) use the /ADDNEWSTOCK switch.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
To increase / decrease any existing stock values with those in the import file use the
/UPDATEEXISTING switch
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
For the BDX format only - a separator can be specified; this is useful where the
BDX fields are separated by a character other than a comma, for example a colon.
Overwrite stock
filename - file with stock information. This must include the correct file extension.
The basic operation is to add new stock (Boards and offcuts) to the library.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
The format can be set via the System parameters in the user profile or via the
/FORMAT switch. The format must match the file name extension
The numbers for the /FORMAT switch are:- 0 - BRD format, 1 - BDX format, 2 - Bargstedt
stock file BESTAND.STK.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
0 = do nothing
1 = clear quantities
2 = remove items
3 = remove items and delete empty materials
The relevant system parameters must be set to make the link to the external database.
Issue stock
STOCK /ISSUESTOCK
This issues stock for the current run. This can also include the command: /OPT to control
the stock update, e.g.
Options are:-
1 - Adjust boards
2 - Adjust offcuts
3 - Add offcuts
4 - Adjust edging
5 - Adjust fittings
6 - Adjust monthly summary
Reserve stock
STOCK /ALLOCSTOCK
Reservation records are assigned the current date in the 'cut date' field.
Reset Transactions
STOCK /RESET
Produces the End of Month / Year report. Stock transactions (audit trail) are automatically
exported to an external file. The external file is located in the: Path for Stock libraries (if
set) other it is located in the Path for library data. For example:-
/UDF
Example: /UDF:"board import"
The default extension is ubx. If the file name is not set the program uses the file
specified in system parameters.
The /SEP option takes precedence over the separator specified in the board import
parameters.
Notes
- separator can be any ASCII code between 32 and 127 except the following (0 to 9,
A to Z or a to z).
- for /FORMAT the program runs in silent mode and any errors are sent to a .ERR
file.
STOCK /MINFREESTOCK
The output defaults to all materials rather than prompting for a range. The minimum
free stock report appears on screen and may be printed in the usual way.
User defined
/UDF
The default extension is ubx. If the file name is not set the program uses the file specified
in system parameters.
The /SEP option takes precedence over the separator specified in the board import
parameters.
Separator
/SEP:<separator>
/SEP:58
/SEP:":"
The separator is either the decimal ASCII number or the character enclosed in quotes.
The separator can be any ASCII code between 32 and 127 except the following (0 to
9, A to Z or a to z).
Calculation of parts
/CALCPARTS
/IGNORENULL
If this is used then any NULL values in the file will not be used to blank out variable
answers during the import process.
Errors
Any errors created during import and generation of the product requirement file,
part list and cutting list files are placed in the PRODIMP.ERR file.
Note
/CALCPARTS can only be used in standalone mode and therefore needs to be run with
the /AUTO command.
SAWLINK [/Switches]
Use the various switch options to specify the details of the transfer, for example:-
..\sawlink /AUTO
..\sawlink /AUTO /SAWPATH="c:\Saw transfer" /TRANSMODE=6 /CADMATIC=CAD4
Switches
Refer to the Saw transfer parameters for full details of each option
Notes
- For file names and commands with spaces use quotation marks to enclose the text
- Specifying a run to transfer. The run can be either a name or a run number:-
/RUN=00001
/RUN="Week 1"
- The format of the commands reflects the usage in the previous Options command
- /GROUP - this refers to the number of the group in the saw transfer parameter list. The
first group in the list is group 1 and the next group 2 etc.
Previous commands
- /AUTO, /DELETE, and /number are the previous commands - these can still be used in
the same way. But do NOT use with any of the other commands; in this case /number
means that any other command options are ignored. This also applies to the new
/GROUP command.
'Automatic and silent' - means that the transfer program does not use screen displays or
report prompts and errors on screen. Transfers the current batch of runs.
Run files are deleted from the directory set by the System parameter: Path for data, when
the whole batch is successfully transferred to the saw. Only files associated with the
current batch are deleted (<run>.*).
/n saw number
The 'n' stands for the number of the item in the saw transfer parameter list.
Previously for saw transfer the /DELETE option also deleted any parameter files
associated
with run. This is no longer done. The files deleted are:-
Run name.* - any file matching the run name in the Path for data
Cutting list (.ctt) - from 'Path for part lists' if set or 'Path for data' otherwise
Part list (.prl) - from 'Path for part lists' if set or 'Path for data' otherwise
Board list (.brd) - board list associated with the run
Batch file (.btc)
Use this switch for stand alone saw transfer to separate offcut patterns to a different
run (/SEPARATEOFCRUNS=1).
The DXF saw transfer options can be specified as a command line option for stand
alone operation.
/DXFOPTIONS=1:0:1:1
The four digits correspond to the for layers so in the above example the BOARD layer
and OFFCUT layer would be included in the DXF files and the PART and CUT layers
would not. By default if no DXF options are specified then all layers are generated.
Lite
The backup process can also be activated from the command line. Program must run
from a User profile
/AUTO - silent operation (any errors are stored in a backup.err file in the user
profile).
/PATH - override current System parameter: Path for backup and place the backup
file in a different directory/folder
In this example a Windows batch file is used to control the process of importing a part list
from a pattern exchange file and optimising the part list.
..\import %1 /format:8
..\batch %1 /optimise /auto
The batch file example2.bat is run from a Windows shortcut which provides the name of
the file to import.
The 'Start in' box is important since the batch file must be located in or start in the V12
user profile.
Errors - if an error occurs .ERR files are created in the user profile, for example,
IMPORT.ERR. These are text files and can be viewed with any Windows text editor or
Word processor.
In this example a part list is imported from a pattern exchange file, optimised and the
Board summary exported to a spread sheet. The batch file (example4.bat) contains:-
..\import %1 /format:8
..\batch %1 /optimise /auto
..\output /export /reports=E
The last two lines copy the resulting EXD file to CSV and load it into a spread sheet. The
spread sheet commands will vary depending on the system used.
The batch file is located in a user profile (in this case V12demo).
Note - the second value of the system parameter: Run - last, use part list must be set so
that the output files (ptn and exd) have the same name as the part list that is imported and
optimised.
The batch file example4.bat is run from a Windows shortcut which provides the name of
the file to import.
In this case the file extensions are not used (they are not needed) as they would clash
with the operation of the batch file.
The result is the board summary data loaded into a spread sheet ready for use.
There are various stand alone options for the Online label PC, the Saw Queue, and Saw
Simulation programs but these are part of the operation of the programs themselves and
are covered in the Help.
Most of the portions of the Optimising software can be run directly from the command line
but there is not really any purpose in this and it is safer to run the full program in the usual
way. To restrict access to some parts of the program use System parameters or purchase
security keys with a restricted set of modules available e.g. Parts Only.
Use the Auxiliary menu on the main menu screen to set up links to other programs. This
is usually a better method than using a batch file to achieve the same result.
Stand alone program for direct conversion from Pattern Exchange to CADmatic 3/4/5
(recursive)
Maximum length for filename: 150 characters - within this the name has a maximum
length of 50 characters (e.g. c:\V12\import\job325-exchangefile-01.ptx )
The program and most dialogs for paths support all these types of path specification.
There are restrictions on the overall length of the path and some characters are
not allowed in path names. Paths can include spaces and dots.
\\Testbed09\os (c)\V12\V12.exe
destination - argument to specify the path where .saw files are created (e.g.
c:\cadv40\data\saw)
CADlink has also been updated to allow the use of CPOUT import/export parameters
when working with CPOUT files. The parameter file name to be used should be specified
after the /IMPORT_CPOUT command line option separated by a colon
Examples:
If the name of the CPOUT file does not match the format specified in the parameters, it
will not be imported.
/BACKGROUND[:n]
/DELETE
/HIDE
/RESULT=[path]
/INF=[n-m]
/UDI=[n-m]
/IMPORT_CPOUT=[filename]
/CAD3
/CAD3R
/CAD4
/CAD5
/UPPERCASE
The following can also be used as an alternative to the filename and destination
arguments.
/FILENAME=filename
/DESTINATION=destination
Example
Note
If no options are used program looks for '*.ptx' in the current working directory. This allows
the program to run just by double-clicking in Windows Explorer.
Irrespective of foreground / background mode, the program must pass certain tests
before it can begin processing files. If these tests fail the program terminates with one of
the following (negative) exit codes.
-1 No security key
-2 Access denied to source path (read)
-3 Access denied to destination path (write)
-4 Program initialisation error
When converting a single pattern exchange file CADlink returns the result in the program
exit code. The exit code is zero for a successful import or non zero to indicate an error.
If a wildcard is used (e.g. *.ptx) then for each pattern exchange file which matches the
wildcard pattern the program creates a result file (<ptx name>.rlt).
If all imports are successful, the program exits with code zero otherwise the exit code is
the first error encountered. Pattern exchange files which already have a result file in the
destination path are ignored.
If the program is running in background mode result files are always created / checked
since the program has no exit code. The existence of the .rlt file prevents the program
from continuously importing a bad pattern exchange file.
ASCII/Unicode PTX
[error number]
[field number]
[line number]
MDB PTX
[error number]
[field number]
[table name]
Successful imports have zeros on all three lines. A line number or table name may not
always be applicable, in which case these fields will be zero.
-1 - No security key
The PTX format allows for multiple jobs so more than one .saw file may be created. Job
names are listed in the JOBS record and these names are used to name the saw files.
Note - the program does not attempt to split runs for the saw.
Options
/FILENAME=filename
/FILENAME=c:\V12\import\week1.ptx
Format and restrictions the same as the filename argument (see above)
Examples:
When the CPOUT naming convention is used (cpout.nnn or cpout.nnnnn), the result (.rlt)
and .saw files are named after the extension.
For example:
/DESTINATION=destination
/DESTINATION=c:\cadv40\data\saw
Format and restrictions the same as the destination argument (see above)
Mode to produce either CAD3 or CAD3R saw files rather than the default CAD4 saw files
Examples:
Additional errors may occur in the result file (.rlt) when exporting to CADmatic 3 formats.
Mode to produce CADmatic 4 format saw files (note that if no mode is entered the
program uses this mode as the default)
Examples:
Examples:
This option forces CADmatic .saw files to be created with UPPER case filenames
(including extension) to ensure compatibility with older systems.
In this mode the program does not terminate. It periodically checks the specified path for
PTX files which match and automatically converts new files as they are found. To ensure
that CADlink does not consume too much of the processor time there is a configurable
'sleep' time between checks (n seconds). Format is:-
/BACKGROUND[:n]
/BACKGROUND
/BACKGROUND:10
Delete (/DELETE)
/DELETE
This option also deletes any results (rlt) files matching the pattern exchange files.
Specify the location for the results (.rlt) file(s). Format is:-
/RESULT=[path]
e.g.
/RESULT
/RESULT=c:\ResultsFiles
If this option is not set the results files are created in the same location as the input files. If
the option is set but no path is specified this forces the program to create results files (in
the same location as the Input files).
Note - where a single named file is imported the results file is not automatically created as
the results are returned in the exit codes (see above).
Running CADlink with the /HIDE option runs the program in hidden mode. If CADlink is
also running in background mode (/BACKGROUND) then it can only be terminated via the
Windows Task Manager. Format is:-
/HIDE
The pattern exchange format has two forms of part information box:
When V12 imports the PTX, information box parameters allow the fields in PARTS_INF to
be directed to nominated information boxes. These then take precedence over fields in
the PARTS_UDI which would otherwise populate that box.
CADlink does not have the information box settings required to map PARTS_INF fields to
specific information boxes. Instead this is done by the following options.
/INF=n-m
/UDI=n-m
The relative order of these commands is important, whether they appear in the .ini file or
on the command line. They can be mixed with other arguments but if /INF comes before
/UDI then this dictates the order in the final information boxes in the .SAW file.
The internal default is /UDI /INF, so this results in 60 PARTS_UDI fields followed by 28
PARTS_INF.
Unicode
The "/UNICODE=" option can be used in the cadlink.ini file or as a command line
argument to configure the generation of Unicode files. Valid settings are "UTF8" and
"UTF16LE".
e.g.
/UNICODE=UTF8
/UNICODE=UTF16LE
If the program finds cadlink.ini in the program directory (folder containing cadlink.exe), it
ignores any command-line options and uses this instead.
Lines in the file are identified by the relevant option keyword (e.g. /FILENAME) and can be
in any order.
/FILENAME=filename
/DESTINATION=destination
/BACKGROUND[:n]
/DELETE
/HIDE
/RESULT=[path]
/INF=[n-m]
/UDI=[n-m]
/FILENAME=c:\import\*.*
/DESTINATION=z:\cadpool\online
/BACKGROUND:15
/DELETE
/HIDE
Notes
Passing supplementary optimising, saw, and destacking parameters to the .saw file
Only a few parameters are given in the .ptx file format (mainly in the MATERIALS record).
These are passed directly to the CADmatic in the .saw file but the saw controller may
need additional optimising, saw, and destacking parameters in order to obtain finer control
over the cutting patterns and destacking functions.
To facilitate this, if optimising, saw and material parameter filenames are specified in the
PTX file, the program searches for these files in the program directory (the folder
containing cadlink.exe). Values from these files are passed to the .saw file.
If no parameters are specified in the PTX (the files do not exist or fail to be read) default
values are used.
Similarly the program attempts to read destacking parameters from the program directory
if they are available.
Supported keys
CADlink can run with the CADplan key. The full list of supported keys is:- CADlink,
CADplan, Modular (SI module) and Master keys. Single keys or network keys are
supported.
Tension trims
Specify rip tension trims by using function code '81' in the CUTS record of a PTX
file. The dimension specified in these records represents the tension trim dimension
(less saw blade thickness) output to the CAD4 SAW file.
e.g. saw blade thickness = 4.8mm, overall width of tension trim = 30mm
Use the program Import services for quotes and orders with other systems via the
command line or batch file.
It is sometimes useful, especially for processes that are commonly repeated, to use them
in a link with other programs.
The stand alone options are used for this. Quotes/Orders import can be used in this way.
/QUOTE – necessary for importing quotes, otherwise this program will start in import
requirement mode
User defined
/UDF
Where there is an import parameter for user defined parts the parameter file can be
specified on the command line with the UDF option.
Separator
/SEP:<separator>
e.g.
/SEP:58
/SEP:”:”
The separator is either the decimal ASCII number or the character enclosed in quotes.
The separator can be any ASCII code between 32 and 127 except the following (0 to 9, A
to Z or a to z).
File format
/FORMAT:nn
0 – CSV
1 – XLS
2 – XLSX
e.g. /FORMAT:1
/IGNORENULL
If this is used then any NULL values in the file will not be used to blank out variable
answers during the import process.
Errors
Any errors created during the import and generation of the product requirement file, part
list and cutting list files are placed in the QUOTEIMP.ERR file.
This update introduces a new script driven shell (V12Shell.exe) which provides an
alternative to calling standalone V12 programs from a batch file.
A typical script contains a set of commands very similar to the set of standalone calls
made at present, but provides these benefits:
(a) Control of security key checks to avoid the issue where the first call (eg import) finds a
licence,
but the next call (eg optimise) finds no licence available.
(b) Error handling - all error messages are sent to a single error file in a specified path.
(c) Status file - indicates if errors have occurred or all processes completed.
(d) Control the timeouts in the event that one of the programs hangs
(e) Use of direct interprocess communication between the shell and individual
applications.
The V12Shell program is designed to make use of V12 user profiles which have been
created and set up (paths etc). The program must have exclusive use of the user profile: it
must exist and is locked for the duration of the script.
It is the caller’s responsibility to manage the user profiles and allocate them to different
instances of V12Shell.
To work reliably with a network key, a nethasp.ini file is normally required in the program
folder. This should target the key’s host IP address and have broadcast turned off. In the
absence of a nethasp.ini file, the error ‘No network key licences available’ may not be
reported correctly.
V12Shell Overview
Environment variables can be used (but not set) in the script lines.
The script does not allow other types of batch / script commands like defining variables,
for loops, if-then-else tests etc.
The shell calls each line in the script sequentially and waits for the process to complete. It
then looks for error files before continuing with the next.
It is not necessary to give the full path of V12 executables if they are in the same location
as the V12Shell.exe - just the program name and its arguments.
Extra command line arguments (and / or script header lines) tell the shell:
When the shell terminates, the final status is recorded in the status file (detailed in a later
section). The main status code number is also returned in the V12Shell.exe exit code.
When the shell runs, it creates the status file (or overwrites it if it already exists) and
outputs a status code 0 (meaning ‘In progress’). The specified error file is deleted if it
already exists.
The calling process can abort the script by deleting the status file.
V12Shell runs hidden by default but it also has a visible diagnostic mode for testing (see
later section).
The first argument to the shell is the path of the script file:
e.g
v12shell c:\Scripts\00001.txt
Script header lines can be passed on the command line or stored in the script file. These
have the form:
HDRn=<setting>
Where the <setting> field contains spaces, the command-line version must be enclosed in
quotes.
(e.g “HDR1=C:\User Profiles\User 1”)
Command line settings take precedence over those in the script file.
The ‘Required’ script header lines generate a fatal error if they are not provided (see later
table).
Form:
ARGn=<setting>
Where the <setting> contains spaces, the command-line version must be enclosed in
quotes.
(e.g “ARG1=Value with spaces”)
Command line arguments for HDRn and ARGn can be in any order but the script name is
always the first argument.
Examples
v12shell c:\Scripts\00001.txt
[c:\Scripts\00001.txt]
HDR1=c:\V12\UserProfiles\UserProfile1
HDR2=c:\Errors\00001.err
HDR3=c:\Status\00001.sts
batch.exe 00001 /AUTO /OPTIMISE
sawlink /AUTO /1
[c:\Scripts\00001.txt]
[c:\Scripts\Template1.txt]
HDR1=c:\V12\UserProfiles\%2
HDR2=c:\Errors\%1.err
HDR3=c:\Status\%1.sts
batch.exe %1 /AUTO /OPTIMISE
sawlink /AUTO /1
HDR1:c:\V12\UserProfiles\Profile1
HDR2=c:\Errors\Job00001.err
HDR3=c:\Status\Job00001.sts
batch.exe Job00001 /AUTO /OPTIMISE
sawlink /AUTO /1
0 = In progress
1 = Completed (no errors)
2 = Completed (with warnings - see error file)
3 = Terminated with errors
4 = Terminated by calling process (status file deleted)
The final status code is also returned to the caller in V12Shell’s exit code.
The content of the additional status lines depends on whether the script is still in progress
or has terminated / completed (see previous section).
Script In progress
The status file is updated every time a new command is executed in the script file.
The content of the status file is as follows:
Line 1: 0 - in progress
Line 2: n - line number in original script file
Line 3: cmd - command currently executing
The command (cmd) is the actual command (after arguments and environments have
been substituted). This line starts with the date & time that the command was executed
and it contains the full path to the exe.
Example script:
HDR1=UserProfiles\%2
HDR2=Errors\%1.err
HDR3=Status\%1.sts
IMPORT.EXE %INPUT% /AUTO /PARTS /FORMAT:8 /NOWRTBRD /OVERWRITE
BATCH.EXE %INPUT% /AUTO /OPTIMISE
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=11 /CADMATIC=CAD5
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=6 /CADMATIC=CAD5
OUTPUT.exe /EXPORT /REPORTS=J /EXPORTPATH=C:\Temp\
When executing the line in bold, the status file might be:
0
4
20-Dec-21, 17:21:46 (506), c:\v12Shell\programs\IMPORT.EXE "Parts PTX import" /AUTO /PARTS /FORMAT:8 /NOWRTBRD
/OVERWRITE
Lines 2 & 3 act as a further explanation of an error condition (i.e code 3 in status line 1).
Program timeout
This is the time taken for a network licence to become re-available in the event that an
application stops responding. The default for this is 5 minutes.
Diagnostic mode
V12Shell runs hidden by default but it also has a visible diagnostic mode for testing.
Diagnostic mode is activated by the /DIAG argument which can appear anywhere on the
command line. For example:
In diagnostic mode, the program displays the script header lines and command line
arguments, the script contents (with a highlight to indicate the current line) and the current
progress / final status.
When running in diagnostic mode V12Shell must be closed manually (X) when the script
terminates.
The ‘Line status’ column shows information about each line in the script as it executes /
completes.
The ‘Additional’ column shows the script line with any arguments / environment variables
substituted.
The text on the diagnostic dialog appears in English by default. To display text from a
named language file, add the name of the language file (without extension) to the /DIAG
argument as shown in the following examples.
/AGE=<number of days>
/NORECYCLE indicates that deleted files are not sent to the recycle bin
Using program Formout services via the command line to print form/labels
Arguments
data source - the name of the file containing data to be printed. e.g. a part list
filename when using a part list form.
The data source is either a part list/cutting list filename, a quote filename, a
requirements filename or a batch filename (for cutting patterns and runs). If no
batch filename is specified, the current batch is used.
The /PRINT argument is used to specify a different printer, otherwise the default
printer will be used.
The /EXPORT argument is used to export the contents to image files instead of printing.
These files will be generated in the path for export. They will use the file format specified
inside the form/label design.
The files are generated in a folder below the path for export and are based on the
design file specified and the file name/run.
The folder is named after the design file and then the filename or run.
e.g. If basic part list generates 4 labels then it would generate 4 files called:
basic part list-0001.jpg
basic part list-0002.jpg
basic part list-0003.jpg
basic part list-0004.jpg
The /EXPORTPATH argument is used to override the path for export and use a different
path.
FORMOUT.EXE can be called inside a batch file to do multiple form/label print requests.
e.g. example.bat
@echo off
..\..\formout "part list form - 1d barcode_fp" "basic part list"
..\..\formout "board details_fn" "nesting - dxf"
Error handling
If the printer name specified is not found then the following error message will
be added to the file formout.err:
If the TLF filename specified does not exist then the following error message will
be added to the file formout.err:
e.g.
Here is the list of TLF extension types where _F* refers to forms and _L* refers
to labels
If the data file is not found then the following error message will be added to
the file formout.err:
Even when parts of the program are running in 'stand alone' mode the parameters must
be set up in the same way as for the full program. So System parameters, Import
parameters, Machine centre parameters etc. must be set for the stand alone options to
operate correctly.
System parameters
For any import, export or stand alone option to work correctly set up the relevant system
parameters. The sub-sets described in this section are the ones that typically require
attention.
To locate the system parameters select the following at the main screen.
There is just one set of system parameters for each User profile.
The settings apply to all the data and operations in a user profile.
System parameters
Measurement mode
- millimetres
- decimal inches
- fractional inches
Millimetres are the standard metric measure to one decimal place. e.g.1230.5mm
96.5mm
Decimal inches are inches expressed as decimals. e.g. 60.125 in. 12.500 in.
Fractional inches are inches expressed as imperial fractions. e.g. 3-1/4 in. 25-3/16 in.
The measurement mode is usually the same measurement mode as the saw, machining
centre or other machinery.
If the path does not exist the program prompts to create the path.
Note - if the path contains names of two or more directories that do not exist the program
does not create the directories
Typical data to import are part lists, board lists and product requirements.
For example:-
C:\VER\EXPORT
If the path does not exist the program prompts to create the path
Note - if the path contains names of two or more directories that do not exist the program
does not create the directories
Summaries
Part and product costing data
Operations and fittings
Cutting list
There are separate paths for import and export so files can be imported from one
directory and exported to another.
- The choice of layout and data exported are set in the Review runs - Parameters
('Exported' button)
Some data and reports are only available with the appropriate module
- no extra data
- cutting times
- offcuts
- cutting dimensions
- edging
- part drawings
- transfer part drawings to saw
- destacking
- baseboard cutting list
- exported cutting list (parts only)
- exported cutting list (parts and boards)
- convert destack data for CADmatic (BSB/SDS)
The program uses the extra data when producing reports, such as, the offcut, edging, and
destacking summaries. Only select those items you need as this speeds up the operation
of the program. For example, if not making use of offcuts there is no need to create the
data for the offcut report.
Note - For cutting length value on the Management summary select Cutting times
Order of dimensions
The part 'Dimensions' are the Length and Width of the part. Set this parameter to choose
which order the length and width columns appear on the screen.
- Length Width
- Width Length
In Europe most lists of sizes appear in the order Length-Width but the order Width-Length
is more frequently used in the USA and Canada.
The order applies wherever the part length and width are displayed e.g. Board library, Part
list, Review runs reports.
The columns 'Max. Parts' and 'Max. Boards' show the maximum values for part and board
lists for each format. The software automatically divides lists that have more than the
maximum parts into smaller units. Control the maximum number of board types by editing
the board list or board library.
- For the 'Optisave' format the length of each information box is limited to 30 characters.
Also set the System parameter: Create data for so that exported data is created. If lists
are divided the type of division is set in: System parameters
Import parameters
These control the type of import for parts, patterns and boards. They are available at the
Import dialog (e.g. File - Import parts). Then select: File - Parameters.
Import parameters
These can be used to, for example, set the type of Import (e.g. from PTX) and specify the
separator used between fields.
For transfer to the saw set the saw transfer parameters for each saw.
- Parameters
- Saw transfer parameters
Make sure the 'Path' and 'Mode' are correct for the saw.
Information boxes
Where the data for parts includes extra information such as detailed edging data, tracking
numbers, finished sizes etc. make sure that the Information boxes are correctly set up to
cope with the incoming data for import.
Use the Information box parameters for this. Add pre-defined or user defined boxes as
necessary.
Information boxes
Take care when changing these parameters since they apply to all part lists. It is often OK
to add new items but deleting or changing an existing item may cause a problem with part
lists already using that item.
Where data is imported from an external file use the 'Part list import' parameters to define
that file format so that it can be correctly imported by the program.
This sets up the link between the fields in the external file and the fields in the part list
including information boxes.
Where transfer to a machining centre is involved make sure that the Machining centre is
correctly described in the Machining centre parameters (Main screen - Parameters -
Machining centre parameters)
Nesting parameters
These are used with the Nesting optimisers. They describe the constraints on the nesting
machinery and operation.
Nesting parameters
These are used instead of the Optimising parameters for the Nesting optimisers. There
are also some System parameters that need to be set for Nesting.
Nesting also uses the Machining centre parameters to describe the Machining centre.
The following list shows the most important limits on list sizes, field lengths etc. These
limits apply to the Professional Optimiser.
Item Limit
Max items in part list 20000
Max items in cutting list 20000
Max items in board list 5000
Max items in cutting list per optimization (saw) 9999
Max items in cutting list per optimization (nesting) 4000
Max items in board list per optimization (saw) 5000
Max items in board list per optimization (nesting) 2000
Max material types per run(saw) 5000
Max material types per run(nesting) 2000
Max offcuts in run 7500
Max patterns in run (saw) 5000
Max patterns in run (nesting) 2000
Max dimension for parts and board (mm) 9999
Max parts in a pattern (saw) 5000
Max shapes in a nested pattern 1000
Max value for quantity part / board list 99999
Max run quantity per pattern 99999
Max runs in batch 250
Max length of product code 25
Max length of part code 50
Max length of material code 50
Max length of material code (edging library) 50
Max length of board code 50
Max length of edge code 50
Max length of destacking code 50
Max length of machining code 50
Max length of drawing code 25
Max length of pattern code 25
Max length of machine drawing file ref 9
Max length of run number 50
Max length of Order or Reservation code 50
Max length for Stock order number 50
Max length of variable name 25
Max length of formula name 25
Max length of part description (part library) 25
Max length of product description (prod. library) 25
Max length of memo field (product library) 100
Max. records in product library 99999
Max. records in material library Access mdb
Revision 1.15
Copyright notice
No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of Magi-
Cut Software Ltd.
Microsoft, MS-DOS, Visual Basic, Windows, Windows 7, Windows 8, Windows 10, Windows 11 are either
registered trademarks or trademarks of the Microsoft Corporation. Several of the diagrams in this manual are
based on images provided by the Corel Corporation and the Microsoft Corporation.
Page 2 of 271
Interface Guide
Contents
1. Introduction ......................................................................................................................4
1.1 Overview of the program............................................................................................6
1.2 Nested Optimising....................................................................................................20
2. Import data.....................................................................................................................27
2.1 Import parts..............................................................................................................29
2.2 Import product requirements....................................................................................57
2.3 Import boards...........................................................................................................71
2.4 Import Parts / Boards / Patterns - Pattern Exchange Format (PTX)........................86
2.5 Import/Export DXF drawings for Patterns and Parts................................................97
2.6 External drawings - Part library and Product library...............................................103
2.7 Import from file - part library...................................................................................105
2.8 Import product data................................................................................................108
2.9 Import Quote and Orders .......................................................................................108
3. Pattern Exchange File - Specification - V1.19 .............................................................115
4. Export data ..................................................................................................................181
4.1 Export runs.............................................................................................................181
4.2 Export Part and Product costing reports ................................................................188
4.3 Export fittings and operations.................................................................................190
4.4 Export cutting lists ..................................................................................................191
4.5 Export - Pattern Exchange Format ........................................................................194
4.6 Export - Board library data .....................................................................................198
4.7 Export - Part library data ........................................................................................199
4.8 Export - Product data .............................................................................................200
4.9 Export variables deployment list ............................................................................204
5. Stand alone operation..................................................................................................207
5.1 Import parts / boards / patterns - stand alone ........................................................207
5.2 Export reports - stand alone...................................................................................211
5.3 Export Library data - stand alone ..........................................................................215
5.4 Batch operations - stand alone ..............................................................................216
5.5 Stock update and stock issue - stand alone ..........................................................219
5.6 Import product requirements - stand alone ............................................................224
5.7 Saw transfer - stand alone .....................................................................................226
5.9 Stand alone operation - examples .........................................................................229
5.10 CADLink program ................................................................................................231
5.11 Quotes and Orders Import – Stand alone ............................................................241
5.12 V12 Standalone shell ...........................................................................................243
5.13 Archiving Standalone operation ...........................................................................253
5.14 Form/Label printing ..............................................................................................254
Page 3 of 271
Interface Guide
1. Introduction
This guide describes how to import and export data to and from the V12 Optimising and
Production software. It gives the details for interfacing with the program and extracting
data from the system
Kitchen cabinets
Office furniture
Shop fittings
Doors
Plastic fabrications
Caravans
Bathrooms
Vanity Units
Enter or import part sizes and quantities and let the pro gram create a set of cutting
patterns and cutting instructions. From the cutting patterns send information directly to the
saw or machining centre to cut each pattern and machine each part.
The program works in Millimetres, Decimal Inches, or Fractional (Imperial) inches. Part
lists can be entered in any measurement and converted.
Page 4 of 271
Interface Guide
Use this guide to integrate the Optimising program with other computer operations. Some
typical situations are listed below.
Import parts lists or product requirements lists - part lists or lists of product
requirements may be stored on another database / system and need to be transferred to
the Optimising software ready for optimisation.
Export results for further analysis - export the summary results of each optimisation to
another database or spread sheet for further analysis.
Stand alone operation - run a sub-set of the Optimising software. For example, one
customer enters lists of parts to be cut at remote sites using a text editor and transfers the
results to a central location to be optimised.
Interfacing with special machinery- to export data in a special format so that it can be
used by other machinery. e.g. specialist loading or destacking equipment.
Interfacing with saws and machine centres not covered by the software - the
Optimising software covers a wide range of saws and machining centres but it may be
necessary to do extra work to link to specialist machines or machines not covered by the
standard software.
Page 5 of 271
Interface Guide
Start at the main screen, this is the command centre of the system. Access all the options
from here.
Main screen
The program name is shown at the top of the screen. There are different names in some
countries, for example, Cut-Rite, Magi-Cut, Schnitt-Profi(t) …
At the left is a tree showing the various options and existing data. Click on an item in the
tree to see the files in a category. There are also traditional menus and buttons to access
all the options.
Page 6 of 271
Interface Guide
Part lists
A part list is a list of all the part sizes and quantities required for cutting. This might be for
a single order or for several different jobs.
Select a part list by opening the Part list branch of the file tree and double clicking on a
part list.
The program may prompt: 'Patterns exist - significant changes will delete patterns' - this
happens because in the demo data (installed with the system) many of the part lists are
already optimised.
It is Ok to ignore this message as the next step is to optimise the part list and re-create
the patterns.
The program moves on to the Part list editor screen. This is a spread sheet like grid listing
part sizes and quantities and other information about each part type.
Page 7 of 271
Interface Guide
Part list
- Review and/or enter the required part list items. The basic information is:-
Page 8 of 271
Interface Guide
At the right of the part list screen there are several other columns - most of these are
custom columns which can be used for all the extra data for parts, for example, edging,
text for a part label, a tracking number …
MATERIAL CODE: This is important because it determines the material for a part. The
program uses this to extract candidate boards from the board library and create a board
list. The board list is simply the list of available board sizes and quantities for the job.
Page 9 of 271
Interface Guide
Board list
Board list
The Board list is created by the program extracting from the Board library all board sizes
(and offcuts if any) matching the material codes used in the Part list against each part.
Board can include full size stock boards and offcuts from previous runs (marked with a
type of ‘X’.
Page 10 of 271
Interface Guide
Board library
The board library stores the details and quantities of all the sheet material (a library is
provided in the demo data).
Board library
In this example there are two board sizes available for material MFC18-BEECH.
The board library can include extra information for each sheet size, for example, cost, how
to deal with low stock levels, storage ...
Note - There are a wide range of materials from different suppliers so before using the
program for real - an important task is to set up the board library for the materials typically
available for the company.
Page 11 of 271
Interface Guide
Optimise
Once the Part list and Board list are created the job is ready to be optimised.
The program produces a set of cutting patterns and moves to the 'Review runs' section of
the program. This shows all cutting patterns and a set of summary reports.
Page 12 of 271
Interface Guide
The first report shown is an overall summary of the job; the Management Summary.
Management summary
This is an overall summary of the job, for example. Total costs, Overall Waste
percentage, Net material used …
Use the Navigation buttons or 'Summaries' menu option to view other reports.
Page 13 of 271
Interface Guide
At the foot of the report are a set of tabs with more information. For example, the
'Dashboard' gives a graphical view of the data.
Dashboard
Page 14 of 271
Interface Guide
The individual cutting patterns are viewed via the 'Pattern preview' option.
Pattern preview
Pattern preview
Page 15 of 271
Interface Guide
Use the navigation buttons or the Summaries menu to move between patterns and other
summaries.
Pattern
The tabs at the foot of the report show more details, for example, a full list of the parts
produced by the pattern. The cuts, waste, offcuts and part information are shown for each
pattern.
Page 16 of 271
Interface Guide
After Optimisation the patterns (cutting instructions) are transferred to the Saw or
Machining centre.
Page 17 of 271
Interface Guide
At the main screen select the Saw transfer or Machining Interface option.
Page 18 of 271
Interface Guide
For Saw transfer, for example, the program prompts with the current job.
Page 19 of 271
Interface Guide
Transfer to Saw
- OK to confirm
Note - For practical use the saw transfer and machining transfer need to be set up for the
company's machines. There are parameters for this and a wide range of options are
available.
Typically the saw or machining centre transfer sends data to a location on the Network
(Path for Saw data) and a separate program provided by the machinery manufacturer
runs and sends the data to the machine.
The program also provides Nested optimising - in this case the transfer is usually to a
Machine centre to both divide the patterns and machine the parts.
Page 20 of 271
Interface Guide
Import and Export operate in the same way for Optimising and Nested Optimising and the
program operations and reports are the same, for example, the Management summary.
Page 21 of 271
Interface Guide
The runs are typically based on rectangular and shaped parts and are usually for smaller
run quantities, processed one high.
Page 22 of 271
Interface Guide
The pattern contains the cutting instructions for the pattern and the machining for each
part.
Page 23 of 271
Interface Guide
Page 24 of 271
Interface Guide
The nesting option can be used and integrated with Weeke WoodWop and MPR(X) files.
Page 25 of 271
Interface Guide
Note - When dealing with MPR(X) parts import can be a bit tricky as it has to take account
of the variables in the MPR(X) files.
Page 26 of 271
Interface Guide
2. Import data
These days it is common for programs to interact with other files and systems. For
example, part lists or product requirements may be created by a separate Sales order
system; Boards may need to be imported from a stock control database.
Import parts
Import product requirements
Import boards
Import patterns (including parts and boards)
Import Quotes and Orders
These options are also available on the File Toolbar. Data can also be directly imported to
a Part list.
Import options
Page 27 of 271
Interface Guide
Most common is to import parts lists created by another system, for example, an order or
sales system.
When working with products it is quite likely the product requirements are generated by an
external sales system.
For boards is it sometimes necessary to import boards to the board library (the Stock
control module is required for this). The system can also be set up to synchronise with
external board databases e.g. Bargstedt SQL.
Sometimes users with one-off jobs with special board sizes prefer to import the board list
rather than add those items to the board library.
Page 28 of 271
Interface Guide
Part lists can be quickly imported. At the main menu there are direct options on the File
menu.
Import parts
Page 29 of 271
Interface Guide
Import parts
Page 30 of 271
Interface Guide
In this example the import format is the program's format (named PNX; a ‘comma
separated values (CSV)’ file with the fields in a fixed order.
- Set the System parameter: Path for import data to specify where the files to import are
located.
- Set the 'Import parameters' to describe the import format and other features of the
import.
Page 31 of 271
Interface Guide
The import parameters are accessed from the Import dialog (File - Import parts - File -
Parameters).
Import parameters
Page 32 of 271
Interface Guide
One of the simplest options is: Part list order – ASCII/Unicode CSV (PNX)
The standard format is PNX but there are several other formats to choose from. Some
are more complex imports where part and board sizes can be imported in one go or a
batch of part lists can be imported, for example, 'Batch, part list order'. The options are:-
There are several other parameters to control the import of parts, for example, to set the
separator character and to set whether the import files are deleted after import …
Custom import formats - It is also possible to use a custom format (user defined format).
This can be useful where there is limited control over the format of the external file (see:
Part list import parameters'). Once the format is set files can be quickly imported from the
File tree at the main screen.
Page 33 of 271
Interface Guide
Page 34 of 271
Interface Guide
Where the format of the external file is not known or needs to be set up – use the Import
Wizard (File – Import Wizard).
The program imports data from any CSV (comma separated values) files and Excel files.
Page 35 of 271
Interface Guide
You can then work through the fields and assign them to the correct Part list fields name
by selecting the field name on the ‘What’s this’ button.
Note – you can also cut and paste directly from a spreadsheet to the part list – for
example where the spreadsheet has data in the same order and format as the part list.
Page 36 of 271
Interface Guide
A part list is a list of part sizes and quantities to cut. 'Import parts' is the process of
importing a list of sizes and quantities. The parts can then be optimised to produce cutting
patterns. A simple import file:-
This is the basic data for a part: Part code, Material code, Length, Width, Quantity with the
fields in the same order as displayed at the part list screen.
This format (called PNX) is automatically recognised by the Optimising software - use this
format if possible. The import file extension is PNX e.g. JOB1.PNX
Page 37 of 271
Interface Guide
The import file can also contain up to three header lines which contain:-
Page 38 of 271
Interface Guide
Title, optimising and saw parameter list names are imported from the import file.
A part list is essentially a list of part sizes, quantities and the material to use for each part.
Part list
Part list title - a description for the part list. Use this to identify part lists - the title is shown
on most screens and printed on most reports.
Page 39 of 271
Interface Guide
Optimising parameter list name - parameter list to use when optimising a part list. The
optimising parameter list describes features such as the saw blade thickness, trims, and
type of recuts to use when optimising.
Saw parameter list name - name of the saw parameter list to use when optimising a part
list. Saw parameters describe the features of a saw, such as, overall cutting length,
minimum trims, method of re-cutting etc.
Optimising and saw parameter names default - optimising and saw parameter names are
automatically defaulted to the first entry in the list of parameters files if they are not
otherwise specified.
Material - a unique material code. For example, 15mm melamine faced chipboard could
have a code like MFC15 or 3/4 inch particle board might be PB3/4. The materials are
stored in the Board library. There is a material code against each part in the part list so
that the program uses the correct boards for each part.
Part sizes - The part sizes are the Length and Width of the part. The length is usually the
longest edge of the part and if the part is grained the length is the dimension running
along the grain direction. The width is usually the shortest edge of the part but if the
material is grained the width is the dimension running across the grain direction.
The order in which the length and width columns are displayed depends on the setting of
the System parameter: Order of dimensions for parts. If possible keep the order of length
and width fields in the import file the same as that set in the system parameters.
In the program the 'length' and 'width' are the dimensions set by the 'length' and 'width'
fields regardless of the relative sizes of the dimensions.
Over/under production - allowed under or over production of a part. If they are set for each
part they represent the absolute number of over or under produced parts. If they are set in
the global header line they represent the percentage of over or under produced parts for
every part in the list.
Page 40 of 271
Interface Guide
In an import file the grain value is represented by a number '0' - no grain, '1' grain along
length, '2' grain along width.
Quick Edging field - This field stores the ‘Quick Edging’ codes for a part. These codes are
a simple way of describing the edging requirements for a part where the edging is
straightforward, for example, tape. A single code describes the edging on each edge, for
example.
0 - No edging
A - White tape 1mm
B - Red tape 1mm
The order of edges follows the part list order. If part list order is Width-Length then edges
are in the order (width-width length-length).
Edging
Global header line - part list - At the top of the part list screen is a header line labelled
'global'. If there is an entry in this line for a column this defines the value in that column for
every part in the list.
Page 41 of 271
Interface Guide
Page 42 of 271
Interface Guide
As well as the standard data items such as part code, length, width there are many other
useful pieces of information to record for each part, for example, machining data, storage
instructions, colours, complex edging, and so on. This data varies for each customer -
some use a lot some use none at all. The Optimising program provides extra user defined
fields (called 'Information boxes') for each part.
Information boxes
This data can also be imported from a file. In the following example the PNX file includes
data for the information boxes.
F-UNIT-DOOR,WHITE-LAM-1MM,495.0,570.0,20,,,N,,,,,WHITE-TAPE-22MM,WHITE-TAPE-
22MM,WHITE-TAPE-22MM, WHITE-TAPE-22MM
Page 43 of 271
Interface Guide
Pre-defined information
This is information that is already stored by the system or is created during optimisation.
Destacking Nesting
Destack type Step angle
Bottom layout Mirrored
Bottom material Do not place part on edge
Page 44 of 271
Interface Guide
Machining Drawing
Drawing name import
Drawing name transfer
Transfer name - back
Transfer name - horizontal
Transfer name - common
Machine before edging
Picture filename
Create file (unmachined parts)
Stop position
The information boxes can be set with pre-defined information or user defined
information.
For example, to print a label for each part and make sure that the original product code is
on the label - set the 'Product code' information box for the part list. When the part list is
created from the product requirements the correct product code is automatically stored
against each part.
Page 45 of 271
Interface Guide
This type of information is provided as customisable information boxes since the use of
this information varies a lot between users and can be unique to each user. For example,
a user entering only part lists would not have use for the Product code field.
Information boxes can also be set up for user defined (free format) information.
In some cases there is no control over the format of the import file or it is preferable to
leave the format unchanged as the file is used elsewhere in the production process. In
this case the format of the import file has to be set up in the Optimising program so it can
be interpreted correctly by the import process.
To do this use the Part list import parameters (Main screen - Parameters - Part list import
parameters).
(You can also import custom files directly to the part list – see above).
In this example the data is not in PNX format because the order of fields is: Part Code,
Length, Width, Quantity, Material.
END/2,600.0,750.0,25,MFC15
TOP,1200.0,690.0,30,MDF18
PLINTH,1500.0,150.0,10,MDF18
Page 46 of 271
Interface Guide
Each parameter is a field in the part list and the parameter value is the position of that
field in the external ASCII file. There are two other parameters that need to be set.
R1.003./6678
Product line 31/76
------------------
Work for Week 27 < Start of part list format
STANDARD
ANGULAR
WU05WD-WHITE-DOOR,WHITE-LAM-1MM,495.0,750.0,40,,,Y
In the above example the first three lines are not relevant to optimising and can be
ignored by setting header lines to '3'. This parameter only applies to the user defined
import types (options 6 and 7).
Page 47 of 271
Interface Guide
Extension for CSV file - set this to the file extension for the file, for example, CSV, ASC,
TXT etc.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
To do this create a batch file (BTX) containing the part list names as well as creating the
part list import files. The part list import files can be in PNX format, PNX part code and
quantity format, or a user defined format (the format options are set in the Import
parameters).
In its simplest form the batch file is just a list of files to import.
Page 48 of 271
Interface Guide
Batch import
Move to the Import dialog. The files offered are now Batch (btx) files.
Page 49 of 271
Interface Guide
The parts lists are imported and appear in the file tree on the main screen:-
The batch file (BTX) can also include other items as well as the Part list name. The
process of batch import also creates the batch in the File tree at the main screen. The
part lists are ready for optimising with a single click of a button. The batch is ready to
optimise.
Page 50 of 271
Interface Guide
In the above example the default optimising and saw parameter names are used but
these can also be specified in the imported batch file:-
Note - If a run number is not included the program assigns a run number automatically. If
parameter list names are not included these can be entered before optimising. The board
list name is set equal to the part list name.
Page 51 of 271
Interface Guide
When working with Nesting optimising the imported list may contain variables related to
the Weeke MPR(X) drawing format.
MPR(X) variables and answers can be imported during a part list import process. This
only applies to the following two import formats:-
Each line in the import file refers to a line in the part list. The variables for each part are
specified in the same line as the standard fields (e.g. part code, material, length, width
etc....). A variable can appear in any field position on a line and is denoted by surrounding
the variable name with @ symbols.
@DOORMAT@
The answer is always the next field and must not be surrounded by @ symbols. So a
sequence of variable and answer would be as follows:
@DOORMAT@,MDF-18
The variable and answer pairs can occur at any point in the line:-
PARTCODE,@DOORMAT@,MDF-18,MEL-CHIP-
18MM,123,17,15,,,@CARCASEMAT@,MELCHIP15,@HINGE@,1
If a variable answer is blank, the variable is not placed into the generated part list.
Page 52 of 271
Interface Guide
The 'Template details' information box allows users to import grain match templates
directly into the part list without entering a template pattern in the pattern library.
Users can configure their part import data to contain a 'master' template part with a size to
match the overall template size and containing all the relevant template information in a
field to be imported into the Template details information box.
The create cutting list process uses the content of this information box to set the relevant
grain matching data for each component of the template.
The Template details information box can be found in the 'Grain' section of the information
box types. The 'Grain matching' information box must also be configured when using the
Template details information box to define templates.
Please note that the contents of the Template details information box can only be set
when importing parts and this information box cannot be edited in the part list.
Template details
The Template details information box contains three fields separated by semi-colons (;).
e.g. 1;4.8;[[[1;2;3];[4;5;6]]]
This information should be set for the master part in the part list to be imported.
This is the saw blade thickness to be used in the template. If no value is set a zero blade
thickness is assumed. Please note that for embedded templates (Cut parts in main
pattern) the saw blade thickness eventually used is set in the optimising parameters.
Page 53 of 271
Interface Guide
This field contains the template pattern in a similar format to the recursive (PTNR) pattern
format used in the CADmatic .SAW file. Square brackets are used to indicate the start
and end of a cutting phase and the part list item number used to indicate parts
e.g. [[[1;2;3];[4;5;6]]]
Semi-colons are used to separate values where necessary. Trims at the start and end of
a phase can be entered preceded by the letter 'T'
Waste parts/cuts can also be specified by specifying the dimensions preceded by the
letter 'M'. The dimension specified is the full length/width of the waste piece (i.e. the
length/width of the falling waste plus the thickness of the saw blade).
Page 54 of 271
Interface Guide
Please note all dimensions (blade thickness, trims and waste parts/cuts) should be
entered in millimetres when the measurement is millimetres and in decimal inches when
the measurement mode is decimal inches or fractional inches.
The data in the Template details information box is used to set the content of the Grain
matching information box when creating a cutting list from an imported part list or when
importing parts directly to a cutting list. When this cutting list is optimised the Template
details information box is also used to generate embedded templates in patterns and
appended template patterns.
For this process to work correctly the Grain matching information box must also be
configured. The size of the master part in the part list must be at least as big as the
template pattern and the components parts must all have matching material, valid grain
and quantities
If there are problems with the content of Template details information box, the grain
matching data is not set and the following errors can be displayed: -
Page 55 of 271
Interface Guide
also shown if the Grain matching information box is not configured and template details
are set.
Page 56 of 271
Interface Guide
When working with Products (PQ module) it can be the case that the list of requirements
is generated elsewhere, for example, in a Sales system.
At the simplest a product requirement list for import is just an ASCII list of product codes
and the quantities required.
wall-single,40
base-oven-hse,20
base-single,15
Page 57 of 271
Interface Guide
Page 58 of 271
Interface Guide
- Select OK to import
(There are settings to control the import, for example, to set the separator character and
whether to delete import files after import or not).
Page 59 of 271
Interface Guide
The requirements file is shown in the File tree at the main screen.
Once the format is set up RQX files can also be imported directly from the File tree.
Page 60 of 271
Interface Guide
For a product requirements import to work correctly the product codes in the list must
represent products already set up in the product library.
In the above example there are fixed size products and one code represents one product
so the import file can be set up quite simply. However, one of the reasons for using a
product library is to create 'variable products' where one 'layout' might cover a number of
different sizes, colours, and styles of cabinet.
In this case the product requirements list needs to include answers for those variables
(e.g.720.0 x 450.0, Teak, Modern) as they vary for each customer or order.
Page 61 of 271
Interface Guide
Because the contents of a product requirements file can be so varied and include
variables there is no standard format for import. Instead the format is defined by one or
more sets of 'Product requirements Import parameters'.
Page 62 of 271
Interface Guide
The parameter values are set via the option (Main screen - Parameters - Requirements
Import parameters)
The left hand column shows the various fields for a product and the middle column sets
the position of the field in the import file. The last column is the name of the product
variable (where required).
For example, the fields in the file below are: Product code, Product quantity, and Product
width
KTUNIT,1,1950.0
KTUNIT,3,1750.0
KYUNIT,1,1350.0
Page 63 of 271
Interface Guide
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 0
More complex products may contain variable data. Variable data is information that
changes for each item or customer e.g. the delivery date or type of door handle. If the
external file already contains the answers for this variable data this can be specified in
remaining variable lines.
The # symbol is used to indicate the item is in the imported header line and the number
indicates the position in the header line.
The other items are the fields where the variable answer for each item is located e.g,
DOORMATERIAL may be TEAK for one product and OAK for another.
For the import to be correct the relevant products and variables must already be set up in
the product library and variables table
Page 64 of 271
Interface Guide
The parameter list contains parameters to set the Header lines and the extension of the
import file.
Header lines - describes the number of header lines (any lines before the lines of data) in
the import file. This is useful where not all the header line are related to optimising.
Import - header line - specifies which (if any) of the header lines is the header line to
import. Only one header line can be imported.
Extension for CSV file - specifies the file extension of the import file - default: RQX.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
In this example below there are four header lines and the header line to import is on line
2.
9093:/77/24-002
WK7,ORDERS FOR WEEK 7
BATCH:093221
RX RUN - TY
KTUNIT,1,1950,RED < Start of product lines
KTUNIT,3,1750,WHITE
KYUNIT,1,1350,GREY
Parameter Value
Header lines 4
Import - header line 2
Extension for CSV file ASC
Calculate parts
On import the program can automatically create the list of parts for the product
requirements. This avoids the step of moving to the Product requirements screen and
optimising from that screen. This allows the parts to be optimised as part of a batch or for
the part list to be optimised with a 'stand alone' process.
Page 65 of 271
Interface Guide
Set the parameter value for 'CSV or Excel' to '1' for Excel. If there are two files with the
same name (e.g. IMPORT.XLS and IMPORT.XLSX) the XLSX file is imported.
Answer table
For custom products it may also be necessary to import the answers to product variables.
For example, if a customer has ordered RED doors for the product that answer can be
imported. It is also possible to import a set of predefined answers for a product (called an
answer table), for example, a product with red doors may also include red trims, a certain
type of handle ... The field for the name of the answer table is set in the 'Answer table'
parameter.
Order number or code - Each order or requirements list has a unique number or code.
The order code is set to the name of the import file.
Reference - The Reference is a descriptive reference for the requirements list or order
which is used as a cross reference by the optimising program. This reference can be
printed on product or part labels and other documents.
Optimising parameters - This is the name of the optimising parameter file for this
optimisation. Optimising parameters are used to set items such as the saw blade
thickness, type of cuts and trims.
Saw parameters - This is the name of the saw parameter file for this optimisation. Saw
parameters set items such as the type of saw, cutting length, stack height and so on.
Overs - This is the percentage of over-production allowed for each product. If it is set it
applies to each product line in the requirements list.
Product code - Each product in the product library is identified by a unique code. Note that
the same product code can be repeated in the requirements list for example, where the
order is for a different customer, or where sizes or other features of the same basic
product vary.
Product information - This is extra information about the product. Sometimes this is used
for the product description but can be used for other information like a product identity
number or details specific to that line of the requirements.
Page 66 of 271
Interface Guide
The diagram defines the width X as the leading edge of the product but this is just an
example. The width can be assigned to any edge for each product - this is determined by
the product formulae and the drawing in the product library. The program always uses X -
for Width, Y - for Height, and Z for Depth.
Product variables
'Product variables' are used to define the portions of a custom product that vary for each
customer; items like colour, measurements, number of drawers ...
For custom products the product may contain several ‘product variables’ with each
standing for a variable item.
Page 67 of 271
Interface Guide
The answers to these variables for each order or customer are entered as a Product
requirement.
Where the requirements are imported the answers to the variables for each product can
be included in the import file.
Page 68 of 271
Interface Guide
In the file below the answers for global variables are included in the top line (the header
line) and answer for variables for each product and included on each requirements line.
There are also some fixed fields for the header line:-
File name
Reference
Optimising parameter list name
Saw parameter list name
Overs percentage
The following file contains a header line with fixed information and global data.
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 4
Variable 1 #5 CUSTOMER
Variable 2 5 DOORCOLOR
Page 69 of 271
Interface Guide
For importing answers to variables set the position in the file and give the name of the
variable.
Parameter Value
Product code 1
Quantity 2
Description 0
Width 3
Height 0
Depth 0
Variable 1 4 DOORCOLOR
To do this enter the variable name and the answer on the product line.
PRODDESK,200,300,400,GREEN,OAK,@PLINTH@,500,@BACKMAT@,TEAK
Items up to 'OAK' are defined by the Requirements import parameters and the remaining
items are other product variables. Variables must be in the product definition e.g. of
PRODDESK.
The variable name must be surrounded by @ symbols and the answer must be in the next
field and must not be surrounded by @ symbols. The variable/answer pairs can occur at
any point, if necessary.
PRODUCT1,@CARCASEMAT@,MDF-15MM,,,110,220,50,15
Page 70 of 271
Interface Guide
All the information on materials and board (or sheet) sizes is held in the Board library.
Typically the Board library is maintained manually or with the Stock control module (SC)
stock is updated from optimising and from orders and receipts from suppliers.
With the Bargstedt SQL database and the Stock control module the board library is
synchronised automatically with an external database.
- Updating the board library from an external file (for example, a list of sizes and costs
provided by a supplier)
Select: Stock
Select: Import/Adjust stock from file
Page 71 of 271
Interface Guide
Sometimes it is useful to ignore new stock as it may not be relevant to the Board library.
Page 72 of 271
Interface Guide
A file may contain both new items and updates to existing items in the library.
Note - there is also an option at the Main screen: Stock - Overwrite stock which overwrites
existing stock values rather than adding to them or subtracting from them.
The format for the import file should be one of the following:-
If a ‘User defined’ format is selected also set the name of the Board import parameter file
to use. This file is used to define the format of the external file and match up the fields in
the external file to the Board library fields.
Use the system parameter: Parameters for Import to set the file name.
(See below for details of how to set up the Board library import parameters).
Page 73 of 271
Interface Guide
The result is an updated set of materials, boards and quantities in the Board library.
Board library
Board code - Each board has unique board code for each board size.
3/4V1S-2
1/2PB96x40
MDF18/2
Board sizes - are the length and width of the board. The length is normally the longest
edge of the board but should follow the grain if the board is grained. The width is normally
the shortest edge of the board but should be the edge running against the grain if the
board is grained.
Board quantity - quantity of the board in stock. This is the physical quantity of stock in the
board library.
Quantity - reservations - shows the number of boards already reserved. Reservations act
as a way of reserving boards for future use because the optimisers work on the physical
Page 74 of 271
Interface Guide
quantity minus the reservation. This ensures that there are always the correct boards
available for jobs that are already optimised and waiting to be cut. Only available with the
Stock Control module
Quantity - On order - shows the number of boards ‘On order’, that is, boards that have
been recorded in the ‘Record orders’ section of the Stock control module. Only available
with the Stock Control module
Board cost - cost per square area of material, for example, a cost per square foot or a
cost per square metre.
Board limit - used to restrict the use of each board when the program produces a set of
cutting patterns.
The limit is also used to determine the ratio in which boards are used. For example, to
use two boards sizes in approximately the same proportion 1:1 or 50:50 enter a figure of
‘1’ as the limit setting against each board type. (1, ratio 1:1, 2, ratio 2;1, 3 ratio 3:1). There
are also other settings for sundry or non-optimised parts.
Note - the cost is only overwritten if the cost is set to a value greater than zero and is not
left blank.
Note - there are other descriptive fields for the Board library, such as 'Bin' and 'Supplier'.
These are not used in the BDX format.
Page 75 of 271
Interface Guide
A board list is the list of board sizes used for optimising. This is created automatically
during optimisation by extracting the materials required for parts from the board library.
Board list
It is sometimes useful to create the board list directly (manually or by import), for example,
for 'one-off' jobs where the materials are not in the board library and are not required on a
long term basis. Also it is sometimes necessary to make manual changes to the Board list
to take account of shortages and bypass the values in the Board library.
Page 76 of 271
Interface Guide
To import boards into the board list (NOT into the board library), at the main screen:-
Page 77 of 271
Interface Guide
Page 78 of 271
Interface Guide
Page 79 of 271
Interface Guide
Use the Import parameters to set up the format for the board import file. The Board
options are towards the foot of the dialog.
Page 80 of 271
Interface Guide
For the user defined formats the format is set via the Board import parameters (Main
screen - Parameters - Board import parameters)
These files define how the fields in the external file to import map on to the board library
or board list fields.
Page 81 of 271
Interface Guide
It is possible to create as many parameters files as required; for example, separate files
for different external file formats. If importing to the Board library and to Board lists
different files may be required for each type of import as the external files are likely to be
different.
Use the parameters to describe the format of the external (file to import). A simple ASCII
external file is, for example:-
BRD1,MFC15,2440.0,1220.0,25,18
BRD2,MDF18,2440.0.0,1220.0,30,15
BRD3,MDF18,1830.0,1230.0,10,18
In this example there is one line for each board and the information shown on each
Page 82 of 271
Interface Guide
line is:-
- board code
- material code
- length (millimetres)
- width (millimetres)
- quantity
- thickness
...Code -------------------- 1
...Material -------------------- 2
...Length ---------------------- 3
...Width ----------------------- 4
...Thickness ------------------- 6
...Information ----------------- 0
...Quantity -------------------- 5
Each parameter is a field in the part list and the parameter value is the position
of that field in the external ASCII file. Here is the same data in another format:
25,BRD1,MFC15,2440.0,1220.0,18
30,BRD2,MDF18,2440.0.0,1220.0,15
10,BRD3,MDF18,1830.0,1230.0,18
This is the same data as the first example but the items are now in a different order:-
- quantity
- board code
- material
- width
- length
- thickness
...Code ------------------------ 2
...Material -------------------- 3
...Length ---------------------- 4
...Width ----------------------- 5
...Thickness ------------------- 6
...Information ----------------- 0
...Quantity -------------------- 1
Page 83 of 271
Interface Guide
25,BRD1,MFC15,96-1/2,48
30,BRD2,MDF18,96-1/2,48
10,BRD3,MDF18,72,48-3/4
Note - at the foot of the list that there is a parameter to specify the extension
for the import file; the default is BDX. The path for the file is specified in the
program as the Path for Import
Number of header lines - Enter the number of header lines. Default value is 0 and
the range is 0-99. Only applies when the Import parameter: Board import format
is set for user defined formats.
- The value column specifies a field position in the import file. This can be in
the range 0 to 200. There are less fields to import than this but in some import
files there will be fields that have to be ignored.
- The 'Extension for CSV file' parameter is used to specify the file extension of
the files to be imported.
Field separator - enter an ASCII value for character defining each field e.g. '44'
= comma
Notes
- When importing to a board list the following fields are not used.
Material description
Maximum book height
Page 84 of 271
Interface Guide
The number in brackets shows the maximum length of each field but each field must
also be comma separated and can be shorter than the maximum. Only the first two items
(board code and quantity) are essential the other items are optional.
Material parameter name - stored in the Board library on import. Not used when importing
boards to a board list.
B27/1,250
B28/1,3000
B35/021/009-ASH,-150
B36,0,MFC15,2440.0,1220.0,15.0,42.25,0
SP8,345
Note - not all the fields specified in the BDX format are used when importing into a Board
list (as these fields are not used in the Board list). The fields NOT imported are:-
Page 85 of 271
Interface Guide
For the import of external part lists it is sometimes convenient to also import the board list
at the same time, Quite often the two lists are created together in the external system. At
the import parameters screen:-
The program automatically works out the correct board list name and extension from the
settings for the import type for parts and boards and the extension used (this is either
implied by the import type or taken from the Board import parameters).
Import part format: Part list order – ASCII/Unicode CSV (PNX)
Import board format: Board list order – ASCII/Unicode CSV (BDX)
Part list name: MyBoards.pnx
Board list name: MyBoards.bdx
The Pattern Exchange format is a standard format for describing parts, boards, patterns
and cutting information and can be used for both Import and Export. The file can be either
an ASCII file or an Access MDB database file (the full details for the format are in Section
3).
Page 86 of 271
Interface Guide
The import format is set at the Import dialog (Main screen - File - Import parts (boards) -
File Parameters)
The format for PTX is: Parts & Boards ASCII/Unicode CSV (PTX). The PTX file can
contain both parts and boards. To import (once the format is set):-
Page 87 of 271
Interface Guide
Page 88 of 271
Interface Guide
The PTX format can also be imported from an MDB file:Parts & Boards - Access (MDB).
Page 89 of 271
Interface Guide
Once the format is set Parts and Boards can also be imported from the file tree.
In the example above a section of the ASCII/Unicode PTX file is shown at the right.
Notes
- The File tree extension (PTX) matches the import format setting.
- PTX files can contain more than one part list or board list
Page 90 of 271
Interface Guide
The optimising program usually produces patterns so it is rare to need to import patterns
to the program.
(The main use for the Pattern Exchange format is to export data for patterns to other
systems and machines, or, for manufacturers to use sections of the PTX data for
controlling other production processes).
However, in some cases it is useful to import patterns to the Optimising software, for
example, where special patterns have been created manually and do not need to be
optimised.
Page 91 of 271
Interface Guide
Use the Pattern Exchange format for this import (Main screen - Import patterns - File -
Parameters)
The pattern import parameters are towards the foot of the dialog. Select the one of the
pattern exchange formats, for example: Pattern Exchange – ASCII/Unicode CSV (PTX)
(The other options are for special situations where patterns are imported from other
systems for further processing).
Page 92 of 271
Interface Guide
The screen displays an Import dialog select the pattern exchange file (PTX) to import.
Page 93 of 271
Interface Guide
Page 94 of 271
Interface Guide
The run is the same as any optimised run with summaries and full pattern details.
Page 95 of 271
Interface Guide
Note - import patterns also imports the parts and boards as these are needed for the
patterns.
File tree - also import patterns by selecting the file at the file tree on the main screen
under the branch 'Import patterns'.
Page 96 of 271
Interface Guide
DXF is a common format for part and pattern drawings. To use this format the Optimising
program has to import or read part and pattern drawings in the DXF format and after
optimisation output patterns and machining instructions to a file in a defined DXF format.
- For import use the 'DXF import - layer name rules' to describe the DXF format (Main
screen - Parameters - 'DXF import - layer name rules' )
- For transfer to a machining centre the program uses a pre-defined DXF format (Main
screen - Machine Interface - 2D DXF Nested Layered)
The DXF format is essentially a drawing format describing the geometry of a drawing. The
information for machining (drilling, routing, etc.) is stored separately in different 'Layers'.
Typically there is a layer for drilling, a layer for borders and so on.
Layering - Layering is a mechanism in the DXF format which separates the drawing
elements into series of layers or overlays. Each layer can be identified and its contents
separated from the other layers. The layer names and the layer contents can be chosen
by the user so that is a very flexible way of structuring the information in a DXF file. The
different layer options available are just the different conventions that manufacturers and
users have set up for naming layers and deciding what information is in each layer.
These layers are typically named and defined differently by each user depending the type
and quantity of information they use. Within a DXF file there can also be many other
'Layers' containing information on the drawing or the project which are not used by the
Optimising program.
Page 97 of 271
Interface Guide
Where parts are based on DXF files there are a number of ways of working.
Once the parts are in a part list they can be optimised and transferred to a machining
centre in the usual way.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
Page 98 of 271
Interface Guide
At the part list the DXF parts are now available from the selection dialog.
When using the DXF drawing source (Part list parameters) the setting for 'DXF import -
layer name rules' must also be set to describe the DXF format.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
The item is now stored in the Part library and there is a drawing in the Machining library.
Page 99 of 271
Interface Guide
At the part list the DXF parts in the Part library are now available from the selection dialog.
- Copy the DXF files to the directory set by the system parameter: Path for Import data
At the part list the DXF parts in the Machining library are now available from the selection
dialog.
Machining instructions
For parts processed at a Machining centre the DXF file also contains machining
instructions. This format can be different for each user. Use the 'DXF import - layer name
rules' to describe this format.
Use these parameters to describe the layer structure of a DXF file for machining
information. This information is required if DXF files are used as a source for parts, in the
part list, part library or machining library.
Initially the program prompts to select the folder containing the DXF files. Select the
required folder. This selection is retained for future sessions.
If no names are available or more layer names are required a list of layer names can be
prepared by scanning existing DXF files - for details see: Scan - DXF.
Instruction
Enter the type of instruction stored in the layer name. Some examples of available types
are:-
Vertical drill
Horizontal drill
Saw groove
Circle router
Groove router
Arc router
End groove
Contour
Text
Border
Safety Border
Free form pocket
In the next columns enter the information for Depth, Width, Zstart and Tool where it
applies for each instruction type. This is information that is NOT in the DXF layer but
needs to be set for Machining.
- At the Tool column click on the button to pop up the tool dialog to enter the Tool
information.
The column 'Direction' is for specifying the direction of contours and free form pockets.
This is available where the instruction is a contour or a free form pocket. Enter one of the
following values:-
Blank - contour/pocket direction depends on the way it was drawn in the original DXF
drawing)
CW - contour/pocket is drawn in the machining library in a clockwise direction
CCW - contour/pocket is drawn in the machining library in a counter clockwise direction
Notes
- When transferring a machining drawing in 2D DXF nested layered DXF format any fixed
pockets (not free form pockets) appear on a layer starting with the text 'POCKET'
For the part library and product library a drawing can be associated with each item. The
drawing can be selected from one of several different sources:-
- Machining library
- MPR(X) file
- Drawing library
- External graphics file (BMP, WMF, EMF, JPG)
In this example the part drawing shows a drawing from the machining library.
In this example the product drawing is from an external picture (jpg) file.
- External graphics files are placed in directory set by the system parameter: Path for
pictures. If this path is not set the files are in the directory set by the system parameter:
Path for data
- MPR(X) files are located in the directory set by the system parameter: Path for MPR(X)
files
- Different parts can be linked to the same drawing or there can be a one to one link
between parts and drawings.
The program displays a list of files (from path set by the System Parameter:
Path for data'
If a part code already exists in the part library the program prompts to overwrite
the code or stop the import.
Setup of External files - The file type can be CSV (ASCII/Unicode text file) or the Excel
formats XLS, XLSX; this is set via (Part library screen - File - Parameters). To import an
external file directly to the part library the format of the external file must follow a fixed
layout.
part code
material
description
default length
length
default width
width
grain
quick edge codes
cost
drawing type
drawing code
information boxes
Default length?; default width? - used to set the default check box beside the length
and width fields at the part library
Drawing code - where the drawing type is 0 the drawing code is a file name and
extension, otherwise it is a drawing code
Part lists can also be imported to the part library via the option: Edit - Import from Part
list
At the product library screen there are several options to export data.
- Import product
- Import library
Import product
The program has an option to export data for a single product to a PLE file. This file can
be imported to any product library using this import option.
Import library
This option imports an MDB file and creates the following libraries/tables:
Product library
Part library
Variable table
Lookup table
Formula table
The structure of the MDB file must match the specification for the librar. For details of the
format see the section on 'Export product data'.
When working with Quotes it can be the case that the data is generated elsewhere, for
example in a Sales system.
- Select OK to import
(There are settings to control the import, for example, to set the separator character and
whether to delete import files after import or not).
The requirements file is shown in the File tree at the main screen.
Once the format is set up RQX files can also be imported directly from the File tree.
If importing products, the product code must represent products already set up in the
product library.
Because the contents of a quote / orders file can be so varied and include variables,
information boxes and variable header data, there is no standard format for import.
Instead the format is defined by one or more sets of 'Quote requirements Import
parameters'.
This is set at the Quote Import dialog.
The parameter values are set via the option (Main screen - Parameters - Quote Import
parameters)
There are two main sections to this page. A header section and Item section.
The header section specifies the position in the import files header line, one position for
each header item.
The item section specifies the position in the field in the main body of the file.
For example, the following sample has one header line and three items lines. The header
line fields are ORDER DATE, CUSTOMER CODE, CUSTOMER NAME, DELIVERY
DATE.
They type of item loaded depends on the entry type setting. The following values
determine the item type
Product = 0
Part =1
Free_form/phrases = 2
Fitting = 3
Operation =4
This document describes a data structure for the exchange of cutting lists
and patterns for sheet material between various design programs,
optimising packages, and panel saw controllers.
This data structure contains the information that is required for transferring cutting lists to
an optimising package and for transferring optimised cutting patterns with label
information to a panel saw. The data structure can be created in two formats as follows.
Each record type and each field name are in uppercase and use
underscores between separate words. No table name or field name is
more than 10 characters.
JOBS - header data for each job (cutting list or optimised run)
PARTS_REQ - basic requirement details for each item in the cutting list
PTN_UDI - information used to match parts in a strip - one for each strip in
the pattern
CUTS - cutting instructions – occur many times per pattern – once for
each cut required
3. FORMAT
The ASCII version of the file uses standard comma-separated format, and
has the suffix .PTX (PaTtern eXchange). The main part of the filename
could be the job/order number or batch name if the file contains multiple
jobs.
Examples:-
01234.PTX ABC123-1.PTX
Note that the structure allows for the ASCII file to contain more than 1
cutting list or run if necessary, for example it could contain a batch of runs.
Note that there may be restrictions on the file name because some
controllers will, for example, only accept 5 digits for the job number.
The format and size restrictions for each field are tabulated in section 18. Note, that the
limitations (eg. max length of material code) will vary according to the implementation and
specification of the saw.
All ‘index numbers’ must be integer values, starting at 1 for the first record, and
incrementing consecutively up to the maximum specified. Note, in particular that all part,
board, pattern and cutting records must contain the appropriate job index number showing
which job they relate to.
The Access database version stores each record type in a separate table.
The file has the standard extension of MDB.
Examples:
01234.MDB BATCH32.MDB
The header record contains descriptive and global information for the job. This record
appears as a line in the ASCII file. In the Access database this information will be stored
in the database properties.
ORIGIN - This field indicates the origin for the VECTOR drawing records.
The origin for the CUT records is assumed to be 0 (top left).
HEADER,1,“This is an example”,0,0,1
HEADER TABLE
This record contains data about each job contained in the file. These
records are optional and in the absence of job records all parts and
patterns are assumed to belong to the same job.
0 - not optimised
1 - optimised
2 - optimise failed
JOBS TABLE
This record contains data about each different size (or line item) in the
cutting list. This record is used to provide details about each part (over
and above cut sizes).
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number to link this record with other associated part
records
GRAIN –
0 = No grain/part can be rotated,
PARTSREQ,1,1,SD900X,1,890.0,645.5,50,0,2,0,50,0,0,0
PARTSREQ TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records.
PARTSINF,1,2,BOTTOM,1,690.0,475.0,ORD1234,GREY-1MMPVC,,
GREY-1MMPVC,,Edge PG1,Edge PG2,Edge PG3,Edge PG4,GREYLAM,GREYLAM,
MDF18,2X1,BU-SIDE-CNC,BU4DW,4 Dwr Base Unit,600.0,890.0,570.0,1,1,
0690004750,0012301,WHITE-ASH-325,700.0,485.0
PARTSINF TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records
INFOn
There are up to 60 information fields. The name of each field is INFO
followed by the field number. The fields may be used for any purpose
such as customer details, dates, CNC operations, and other items not
included in the other part records.
PARTSUDI TABLE
JOB_INDEX - Index number used to link this record to other records for
this job.
PART_INDEX - Index number linking this record with other part records
PARTSDST,1,3,3,2,1,30,600,…
PARTSDST TABLE
1 3 3 2 1 .....
JOB_INDEX - Index number used to link this record to other records for
this job.
CODE – Board code - usually the stock code for the sheet size.
COST - Cost per sq. metre or sq. foot according to measurement unit
GRAIN –
0 = No grain,
1 = grain along the length of the board
2 = grain along the width of the board
TYPE –
0 = Stock board
1 = Offcut
2 = Automatic offcut
BOARDS,1,1,WLAM15MM-1,1,2550.0,1525.0,100, 7,
8.50,0,Inf,,0,0,Bin,,Inf
BOARDS TABLE
These records define the different material types. There should be a least
one of these records in data structure. This record is used to pass a
detailed material description, the thickness and other parameters which
may vary according to material type.
JOB_INDEX - Index number used to link this record to other records for
this job.
TRIM_FRIP - Fixed rip trim – includes saw kerf (saw blade thickness) –
amount sheet size is reduced by
TRIM_HEAD - Internal head cut trim – includes saw kerf (saw blade
thickness)
TRIM_FRCT - Fixed recut trim – includes saw kerf (saw blade thickness)
GRAIN –
0 = No grain,
1 = grain along the length of the board
2 = grain along the width of the board
The saw kerf (saw blade thickness) and trims are optional. Note that it is
assumed that one of the two rip trims will be constant and the other rip
trim includes the waste strip. Either (a) the leading edge is trimmed and
the waste strip comes out last, or (b) the waste strip is removed by the first
rip and the last rip is a constant trim. This assumption also applies to
cross cut trims and recut trims.
MATERIALS TABLE
This record is optional and holds any messages or notes that need to be associated with
a job, for example customer details, special instructions, etc, or any details that are job
related rather than part or material related. As many lines as required can be stored for
each job.
NOTES TABLE
This record is optional and can occur once for each different off-cut size
per material created by the cutting patterns.
JOB_INDEX - Index number used to link this record to other records for
this job.
GRAIN –
0 = No grain,
1 = grain along the length of the offcut
2 = grain along the width of the offcut
COST - Cost per sq. metre or sq. foot according to measurement unit
TYPE –
1 = Offcut
2 = Automatic offcut
OFFCUTS TABLE
This record occurs once per pattern. It is used to describe header detail
for the pattern, such as board size used, number of sheets to be cut etc.
JOB_INDEX - Index number used to link this record to other records for
this job.
TYPE - determines the direction of the first cut, and the type of pattern
Fixed Pattern
0 = rip length first – non-head cut pattern
1 = turn board before ripping - non-head cut pattern
2 = head cut pattern – head cut across width
3 = head cut pattern – head cut along length
4 = crosscut only
Template Pattern
5 = Create master part - divide at saw
6 = Create master part - divide at machining centre
7 = Cut parts in main pattern
8 = Cut parts in separate pattern
PATTERNS,1,1,2,0,20,4,5,“Pattern1”
PATTERNS TABLE
These records are used to indicate the matching information used when
inserting parts in a strip. This record only applies when all parts in the strip
must have the same information.
JOB_INDEX - Index number used to link this record to other records for
this job.
These records define each cut for the saw and determine the parts
produced by each cut. This is used, for example, so that the correct labels
can be printed at the saw in synchronisation with the cutting.
JOB_INDEX - Index number used to link this record to other records for
this job.
PTN_INDEX - Index number used to link this record with pattern records
CUT_INDEX - Sequential index number starting at 1 for each new pattern and
incrementing by 1 for each cut
QTY_PARTS - Quantity of this part produced by this cut for all cycles of
this pattern.
Some cuts produce several parts with different item numbers because
although the parts may have the same size they will be labelled uniquely.
This occurs when cutting multiple sheets in a book where the parts on
different sheets have different item numbers. These duplicate parts are
represented with dummy CUTS records showing the part index and part
quantity but a zero dimension and zero cut quantity.
When cutting exact fit patterns (e.g. no trims, strip fits exactly in length of
the board) some cuts will produce two parts side by side (e.g. the last
cross cut in a strip). If this is the case the cut quantity of the last part will
be set to zero, the dimension remains unchanged. Note that it is important
that these records have a dimension so as to differentiate them from the
dummy cut records for duplicate parts.
The QTY_PARTS field allows for the display of the correct part quantities
for duplicate parts. In a pattern with run quantity 20, and cut 6 sheets at a
time, then there will be 4 cycles or books (3 with 6 sheets and 1 with 2
sheets). Say the first part in the top left corner is a mixture of 14 parts
item 1, and 6 parts item 2. The first book at the appropriate cut will
produce quantity 6 labels of item 1, the second book also 6 of 1, the third
book will produce 2 labels of item1 and 4 of item 2, and the last book will
give 2 of item 2. In this example, the CUTS records would show two cut
lines, item 1 quantity 14, and item 2 quantity 6. The saw takes care of
counting the cycles.
Note that the Sequence number will increment by the repeat quantity for that cut. In
example below, CUTS 1,1,2 has repeat 3, indicating three cuts, so sequence number 4
implies 4/5/6 and the next sequence number is incremented by 3.
The 6th CUTS record defines a waste strip 30.4 mm wide, the total width
of the waste gap between the 500mm strip and 200mm strip is 40mm
(30.4+4.8+4.8).
CUTS TABLE
JOB_INDEX - Index number used to link this record to other records for
this job
The origin of the drawing is defined in the HEADER record. The x and y
positions specify the distance to include the saw kerf (saw blade
thickness), away from origin. So, a 10 mm trim would result in a vector at
x=10, where if saw kerf is 4.5, then waste removed is 5.5. The position for
cuts producing parts must include all saw kerfs. Note that unlike the CUT
records where all dimensions are relative, in these records all dimensions
are absolute values.
Notes in italics are for information only and not part of the file.
VECTORS,1,1,1,0.0,0.0,3660.0,10.0
VECTORS,1,1,2,0.0,315.0,3660.0,315.0 - rip 300 wide strip -absolute dimension
VECTORS,1,1,5,5.2,10.0,10.0,315.0
VECTORS TABLE
JOB_INDE PTN_INDEX CUT_INDEX X_START Y_START X_END Y_END
X
1 1 1 0.0 0.0 3660.0 10.0
1 1 2 0.0 315.0 3660.0 315.0
1 1 5 5.2 10.0 10.0 315.0
Notes in [] are for information only and not part of the file.
Filename = A123.PTX
BOARDS,1,1,WHLAM15MM-1,1,2550.0,1525.0, 436,6,2.540,0,Bin
1,,0,0,,,
BOARDS,1,2,WHLAM15MM-2,1,3660.0,1830.0, 178,1,2.430,0,Bin
1,WLAM15-1,0,0,,,
BOARDS,1,3,MDF18-97, 2,2440.0,1220.0, 371,3,4.320,0,Bin
2,,0,0,,,
[definition of materials]
MATERIALS,1,1,WHITE15,“White laminated chipboard 15mm”, 15.0, 4,
4.8,4.8,10.0,0.0,10.0,0.0,5.0,10.0,10.0,4,1,1,0,WLAM15,0,
RGB(255:255:255),0.900
MATERIALS,1,2,MDF18, “Medium density fibreboard 18mm”, 18.0, 3,
4.8,4.8,10.0,0.0,10.0,0.0,5.0,10.0,10.0,4,1,1,0,,0,
RGB(220:17:130),0.650
[patterns]
PATTERNS,1,1,1,0,2,1,2,83,83 [Job 1, Pattern 1, Board 1, Long
rip, Qty 2]
PATTERNS,1,2,1,1,3,1,3,128,128 [Job 1, Pattern 2, Board 1, Short
rip, Qty 3]
PATTERNS,1,3,1,0,1,1,1,204,204 [Job 1, Pattern 3, Board 1, Long
rip, Qty 1]
PATTERNS,1,4,2,2,1,1,1,414,414 [Job 1, Pattern 4, Board 2, Head
cut, Qty 1]
PATTERNS,1,5,3,2,2,1,2,301,301 [Job 1, Pattern 5, Board 3, Head
cut, Qty 2]
PATTERNS,1,6,3,2,1,1,1,302,302 [Job 1, Pattern 6, Board 3, Head
cut, Qty 1]
[cuts]
CUTS, 1, 1, 1, 0, 0,2550.0, 0, 0, 0,MAIN [cut record for job 1,
pattern 1]
CUTS, 1, 1, 2, 1,91, 5.2, 1, 0, 0
CUTS, 1, 1, 3, 2, 1, 725.0, 1, 0, 0,RIP [1 rips at
725 mm]
CUTS, 1, 1, 4, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 5, 5, 2,1200.0, 2, 1, 4 [xcut at 1200 producing
part1]
CUTS, 1, 1, 6, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
part 5]
CUTS, 1, 3, 15, 0,94, 5.2, 0, 0, 0
CUTS, 1, 3, 16, 0,93, 30.4, 0, 0, 0
CUTS, 1, 3, 17, 0, 2,1140.4, 0, X2, 1 [cut 9 also produces off-
cut 2]
CUTS, 1, 3, 18, 4, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 19, 15,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 20, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 21, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 22, 5, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 23, 15,92, 5.2, 1, 0, 0
CUTS, 1, 3, 24, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 25, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 26, 0,91, 45.8, 0, 0, 0
19. EXAMPLES
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Trim 5.2 1
Trim 5.2 1 Cross cut 1200.0 2 P1
Rip 725.0 2
725 mm]
CUTS, 1, 1, 4, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 5, 5, 2,1200.0, 2, 1, 4 [xcut at 1200 producing
part1]
CUTS, 1, 1, 6, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
CUTS, 1, 1, 7, 3, 1, 725.0, 1, 0, 0,RIP [1 rip at
725 mm]
CUTS, 1, 1, 8, 4,92, 5.2, 1, 0, 0 [cross cut trim
5.2 mm]
CUTS, 1, 1, 9, 5, 2,1200.0, 2, 1, 4 [crosscuts at 1200 producing
part 1]
CUTS, 1, 1, 10, 0,92, 130.4, 0, 0, 0 [falling waste length
130.4mm]
CUTS, 1, 1, 11, 0,91, 55.4, 0, 0, 0 [falling waste width
55.4mm]
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Rip 1272.6 1
Trim 5.2 1 Trim 5.2 1
Rip 1200.0 1 Cross cut 600.0 1 P3
Trim 5.2 1 Cross cut 725.0 1
Cross cut 725.0 1 P1 Recut 5.2 1
Cross cut 725.0 1 P2 Recut 1200.0 1 P2
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
MAIN Recut 5.2 1
Trim 5.2 1 Recut 200.0 1 P9
Rip 600.0 1 Recut 200.0 1
Cross cut 1250.0 1 P3 Recut 5.2 1
P3 Recut 580.0 1 P5
Rip 450.0 1 Rip 200.0 2
Trim 5.2 1 Trim 5.2 1
Cross cut 790.0 1 P4 Cross cut 580.0 4 P5
Cross cut 630.0 1
CUTS, 1, 3, 4, 6, 2,1272.6, 1, 3, 1
CUTS, 1, 3, 5, 0, 2,1272.6, 0, 3, 1
CUTS, 1, 3, 6, 3, 1, 450.0, 1, 0, 0,RIP
CUTS, 1, 3, 7, 7,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 8, 8, 2, 790.0, 1, 4, 1 [cross cut producing part 4
x 1]
CUTS, 1, 3, 9, 9, 2, 600.0, 1, 0, 0
CUTS, 1, 3, 10, 10,93, 5.2, 1, 0, 0 [recut
trim]
CUTS, 1, 3, 11, 11, 3, 200.0, 1, 9, 1
CUTS, 1, 3, 12, 12, 3, 200.0, 1, 0, 0
CUTS, 1, 3, 13, 13,94, 5.2, 1, 0, 0 [4th phase recut
trim]
CUTS, 1, 3, 14, 14, 4, 580.0, 1, 5, 1 [4th phase cut to produce
part 5]
CUTS, 1, 3, 15, 0,94, 5.2, 0, 0, 0
CUTS, 1, 3, 16, 0,93, 30.4, 0, 0, 0
CUTS, 1, 3, 17, 0, 2,1140.4, 0, X2, 1 [cut 9 also produces off-
cut 2]
CUTS, 1, 3, 18, 4, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 19, 15,92, 5.2, 1, 0, 0 [xcut
trim]
CUTS, 1, 3, 20, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 21, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 22, 5, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 3, 23, 15,92, 5.2, 1, 0, 0
CUTS, 1, 3, 24, 16, 2, 580.0, 4, 5, 4
CUTS, 1, 3, 25, 0,92, 200.8, 0, 0, 0
CUTS, 1, 3, 26, 0,91, 45.8, 0, 0, 0
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 2979.4 1 Cross cut 790.0 3 P4
MAIN Cross cut 580.0 1
Trim 5.2 1 Recut 5.2 1
Rip 600.0 1 Recut 200.0 2 P5
Trim 5.2 1 Rip 200.0 3
Cross cut 1272.6 2 P3 Trim 5.2 1
Cross cut 200.0 2 P9 Cross cut 580.0 3 P5
Rip 450.0 1 Cross cut 630.0 2 P9
Trim 5.2 1
3 x 2]
CUTS, 1, 4, 6, 11, 2, 200.0, 2, 9, 2 [2 xcuts producing part
9 x 2]
CUTS, 1, 4, 7, 0,92, 5.0, 0, 0, 0
CUTS, 1, 4, 8, 4, 1, 450.0, 1, 0, 0,RIP
CUTS, 1, 4, 9, 13,92, 5.2, 1, 0, 0
[xcut trim]
CUTS, 1, 4, 10, 14, 2, 790.0, 3, 4, 3 [3 xcuts producing part
4 x 3]
CUTS, 1, 4, 11, 17, 2, 580.0, 1, 0, 0
CUTS, 1, 4, 12, 18,93, 5.2, 1, 0, 0
[recut trim]
CUTS, 1, 4, 13, 19, 3, 200.0, 2, 5, 2 [3rd phase cuts producing part
5 x 2]
CUTS, 1, 4, 14, 0,93, 30.4, 0, 0, 0
CUTS, 1, 4, 15, 0,92, 0.2, 0, 0, 0
CUTS, 1, 4, 16, 5, 1, 200.0, 1, 0, 0,RIP [first of 3 strips xcut
together]
CUTS, 1, 4, 17, 21,92, 5.2, 1, 0, 0
[xcut trim]
CUTS, 1, 4, 18, 22, 2, 580.0, 3, 5, 3 [3 xcuts producing part
5 x 3]
CUTS, 1, 4, 19, 25, 2, 600.0, 2, 9, 2 [2 xcuts producing part
9 x 2]
CUTS, 1, 4, 20, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 21, 6, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 4, 22, 21,92, 5.2, 1, 0, 0
CUTS, 1, 4, 23, 22, 2, 580.0, 3, 5, 3 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 24, 25, 2, 600.0, 2, 9, 2 [xcuts with same sequence as
record 19] CUTS, 1, 4, 25, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 26, 7, 1, 200.0, 1, 0, 0,RIP
CUTS, 1, 4, 27, 21,92, 5.2, 1, 0, 0
CUTS, 1, 4, 28, 22, 2, 580.0, 3, 5, 3 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 29, 25, 2, 600.0, 2, 9, 2 [xcuts with same sequence as
record 18]
CUTS, 1, 4, 30, 0,92, 5.4, 0, 0, 0
CUTS, 1, 4, 31, 0,91, 146.0, 0, 0, 0
CUTS, 1, 4, 32, 0, 0, 675.8, 0, X1, 1,HEAD [offcut
produced]
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 1415.0 1 HEAD 1
MAIN Trim 5.2 1
Trim 5.2 1 Rip 650.0 1
Rip 300.0 2 Trim 0.2 1
Trim 5.2 1 Cross cut 275.0 3 P7
Cross cut 1400.0 1 P6 Rip 230.0 2
Rip 275.0 2 Trim 0.2 1
Trim 5.2 1 Cross cut 480.0 2 P8
Cross cut 650.0 2 P7
ADR/PRG: [41]
Cut Size Qty Part Cut Size Qty Part
Head cut 1464.6 1 Cross cut 480.0 3 P8
MAIN Head cut 480.0 1
Trim 5.2 1 HEAD 1
Rip 300.0 1 Trim 5.2 1
Trim 5.2 1 Rip 230.0 5 P8
Cross cut 1400.0 1 P6 HEAD 2
Rip 400.0 1 Trim 5.2 1
Trim 5.2 1 Rip 480.0 2
Cross cut 480.0 3 P10 Cross cut 230.0 2 P8
Rip 230.0 2
Trim 5.2 1
This section summarises the position and format of each field in each
record type. The maximum length of each text field is listed in the
comment column. The range of acceptable values for other field types is
listed where applicable. Please refer to earlier comments for a fuller
explanation of fields.
Note that spaces are not allowed in the material code, and any spaces will be converted
to an underscore (‘_’) on import. Also note that material, part and board codes are
converted to upper case on import.
The job records must have unique job index numbers starting at 1, and
incrementing consecutively within specified range. The part, board and
pattern records must each have their respective index numbers unique
within the job, and again be numbered from 1 and incremented
consecutively.
'HEADER' RECORD
'JOBS' RECORD
'PARTS_REQ' RECORD
'PARTS_INF' RECORD
'PARTS_DST' RECORD
'BOARDS' RECORD
'MATERIALS' RECORD
'OFFCUTS' RECORD
'PATTERNS' RECORD
'PTN_UDI' RECORD
'CUTS' RECORD
4. Export data
The main use for export is to send results (optimisations) to an external file or system.
Individual reports (for example, Pattern summary) can be exported at the screen view or a
complete set of results can be exported. Other typical exports are:-
Export runs
The program prompts for the summaries to export and also the type of data to include.
Summaries to Export
In some cases items such as the headings, sub headings and Totals are not required -
these can be easily excluded.
In the case of Excel, for example, the reports are sent to a single file with each summary
on a separate spread sheet tab.
For Export to an ASCII file each report is sent to a separate ASCII file with the data types
identified by a token at the start of each line. Here is an example of the board summary
data.
%1,DEMO USER 1,Modular V12.0,Tuesday 23 November 2021
%1,Board summary,Kitchen layout
%1,,00009/BSR CD-81/BSR CD-81/?DEFAULT/?DEFAULT/5
%1,No,Board,Length,Width,Information,Qty in Stock,Qty Used,Length m,Area m2,Cost
Rate,Total Cost
%2,HARDBOARD-4MM* Hardboard 4mm Thickness 4.0 Book 8 Parameters HBD04
%3,1.,HARDBOARD-4MM/01,2000.0,1000.0,Spec. Order,795,2,,4.00,0.890,3.56
%3,2.,HARDBOARD-4MM/02,2440.0,1220.0,BIN 133,131,6,,17.86,0.750,13.40
%4,,,,,,,8,,21.86,,16.96
%2,MED-DEN-FIBRE-18MM Medium Density Fibreboard 18mm Thickness 18.0 Book 5
%3,3.,MED-DEN-FIBRE-18MM/01,3660.0,1550.0,BIN 127,1090,2,,11.35,4.500,51.06
%3,4.,MED-DEN-FIBRE-18MM/02,2440.0,1220.0,BIN 128,767,12,,35.72,4.350,155.39
%4,,,,,,,14,,47.07,,206.45
The export choices can be set at the Review runs parameters dialog.
At any Review runs screen:-The data to export for each report can be customised for
each report (Review Runs – Settings – Export settings). With these options you can
design a specific layout and set of data for the exported report which can be different to
the report on-screen.
There is also an option on the File menu to select a default set of reports to export (very
often you do not need to export all the available reports.
Pattern images - at any on-screen pattern there is an option to export the pattern image.
The formats available are:-
Part costing
Product costing
Fittings
Operations
Board library data
Part library data
It is sometimes useful to export the cutting list (for example where it is changed for edging
and laminating and the sizes are used elsewhere in production).
This export is included in the optimisation provided the option is chosen in system
parameters.
The program creates files in the PNX and BDX (for board sizes) formats.
To export the part costing or product costing summary to an external file. Select:-
- Print
- Part costing (or Product costing)
Select the part list and the Export option and select OK. An export file is created, for
example:-
The export files are placed in the directory set by the System parameter: Path for Export
data
The data type for each line in the export file is shown by a % and number at the beginning
of each line. Select which data types to export in the Review runs parameters.
Export fittings or operations reports for any optimisation (run). Move to the fittings or
operations report in Review runs.
ASCII export - the data is exported to a file with the same name as the fitting or operations
list with the report letter appended and extension exd (e.g. BSR81-CDU.exd for fittings).
The export files are placed in the directory set by the System parameter: Path for Export
data
Export cutting lists and boards lists as part of the optimisation or recalculation process.
To do this set the System parameter: Create data for to create to one of the following:-
These options produce cutting lists and/or board lists in an ASCII/Unicode format. This is
useful if the lists are going to be used by other systems.
The export occurs automatically when the part list is optimised. The ASCII/Unicode format
is the PNX and/or BDX format.
Kitchen layout
DEFAULT
DEFAULT
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000449*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000450*
BASE-BACK,HARDBOARD-4MM,876.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,876.0 x
735.0,00000451*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000452*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000453*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000454*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000455*
BASE-BACK,HARDBOARD-4MM,976.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,976.0 x
735.0,00000456*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000457*
BASE-BACK,HARDBOARD-4MM,476.000000,735.000000,1,0,0,0,0,0,0,0,,,,,,,,476.0 x
735.0,00000458*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,564.000000,581.000000,3,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,564.0 x 582.0,00000459*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000460*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000461*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000462*
BASE-BOTTOM,MED-DEN-FIBRE-18MM,464.000000,581.000000,1,0,0,0,0,0,0,0,OAK-TAPE-
22MM,,,,,,,464.0 x 582.0,00000463*
BASE-CABINET-BOTTOM,MED-DEN-FIBRE-18MM,864.000000,581.000000,1,0,0,0,0,0,0,0,OAK-
TAPE-22MM,,,,,,,864.0 x 582.0,00000464*
BASE-CABINET-DIVIDER,MED-DEN-FIBRE-
18MM,559.000000,533.250000,1,0,0,0,0,0,0,0,,,OAK-TAPE-22MM,,,,,560.0 x
533.3,00000465*
BASE-CABINET-DOOR,MFC18-OAK,398.000000,554.750000,1,0,0,2,0,0,0,0,OAK-TAPE-
22MM,OAK-TAPE-22MM,OAK-TAPE-22MM,OAK-TAPE-22MM,,,,400.0 x 556.8,00000466*
.....
HARDBOARD-4MM/01,795,HARDBOARD-4MM,2000.000000,1000.000000,4.000000,0.890000,9
HARDBOARD-4MM/02,131,HARDBOARD-4MM,2440.000000,1220.000000,4.000000,0.750000,0
MED-DEN-FIBRE-18MM/01,1090,MED-DEN-FIBRE-
18MM,3660.000000,1550.000000,18.000000,4.500000,0
MED-DEN-FIBRE-18MM/02,767,MED-DEN-FIBRE-
18MM,2440.000000,1220.000000,18.000000,4.350000,0
MFC18-OAK/01,430,MFC18-OAK,3050.000000,1220.000000,18.000000,3.300000,0
MFC18-OAK/02,111,MFC18-OAK,2440.000000,1220.000000,18.000000,2.970000,0
WHAC12/01,436,WHITE-ACRYLIC-12MM,2440.000000,1220.000000,12.000000,1.320000,4
The other options for 'Export cutting list format' are for special situations where part list
are exported after processing to other systems.
The Pattern exchange format contains all the part sizes, board sizes, parameter settings,
cutting instructions and drawing information for a run and most of the summary data. Use
this to export optimisations (runs) for use by other systems such as a spread sheet,
database, or report generator.
This is the program's proprietary format for patterns (results). It is used by several
manufacturers where they want pick up information from the optimisation results (cutting
patterns).
All the pattern data and structure is contained in the file in ASCII/Unicode or MDB
database format - so it is very useful where custom changes are needed for controlling
specific machines or external systems. For example, to update stock control systems, use
a special post processor to transfer to a saw.
In this case the ‘export’ occurs as part of the saw or machine transfer process. This is set
up as a transfer mode (transfer option) at the Saw Transfer parameter screen.
Quite often both the standard .saw file and the .ptx file are used by a manufacturer. In this
case both files can be exported in a single command by grouping. This option is also
available for transfer to Machining centres.
At the main screen select the Run to transfer and then the transfer method.
In this case the file is located in the ‘Path for Saw data’.
It is sometimes useful to export the entire contents of the board library to an external file,
for example, to update a supporting system. At the Board library screen:-
BDX format
This is a special format for Boards; one line per board including material information. It
can be useful for external processing and data can also be re-imported to the Board
library via the Import options with this format. BDX is the current format.
The data can either be exported to a Fixed file (BRDLIB.BDX) in the directory set by the
System parameter: Path for export data or to a selected file path and name.
It is sometimes useful to export all the Part library data, for example, for updating external
systems. At the Part library screen:-
The library data is exported to a comma separated value file with a fixed name.
PARTLIB.CSV
The file is located in the folder set by the System parameter: Path for Export data
If the parameter setting is blank or there is some other problem with the file an
error is reported.
File format
Each line contains a record from the part library. The order of the fields is as
follows:-
Code
Material
Description
Length
Width
Grain
Edge
Cost
Drawing code
Information boxes
Notes
0=No
1=Yes
2=X
3=Variable
- Quick/Short edge codes are exported as one 4 digit field (e.g. 0000)
- Grain and edge fields are blank for fitting and operations and the cost field is
blank for parts.
At the product library screen there are several options to export data.
- Export product
- Export library
- Export product list
Export product
The export product option is used to export a single product from the library, which
includes the part details and any variables, formulae or lookups used.
When the option is selected a .PLE file is created in the path for export data based on the
name of the currently selected product.
This file can then be subsequently imported into another user profile or into the same user
profile if the product is modified and needs to be reset.
Export library
Products - Contains product details (not the part grid at the bottom of product library)
Subassemblies - Contains the subassembly details (not the part grid information)
Parts - Contains the part details from the part library
ProductParts - Contains which parts appear in which products (part grid information)
ProductSubs - Contains which subassemblies appear in which products (part grid inf.)
SubParts - Contains which parts appear in which subassemblies (part grid inf.)
Products
Code, Description, Width, Default width, Height, Default height, Depth, Default depth,
VerticalPos, DefaultVerticalPos, Drawing, Planview, Elevationview, Price, AnswerTable,
Memo1 to Memo10
Subassemblies
Code, Description, Width, Default width, Height, Default height, Depth, Default depth,
Drawing
Parts
Productparts
ProductSubs
SubParts
Variables
Formulae
Lookups
A line is produced for each product in the library with the fields in the following
order:
The drawing name field contains the sketch name, not the plan or elevation names.
This field can be blank (empty) but there may still be a product drawing which matches
the product name.
The product variables and default answers repeat as many times as required. Default
answers are taken from the variables table. If there is no default answer, the answer
field is blank (e.g. @variable1@,,@variable2@...). Global variables will appear
in the list against each product.
If a product contains parts / machine drawings which have variables, these variables
also appear in the list. This also applies to variables which occur in formulae
or look-ups which occur in the product, parts or machine drawings.
Sub-assemblies and accessories are not exported. The list of parts that comprise
a product are also not exported.
This option lists where variables names are used across the product library, part
library, machining library and drawing library. At the main screen:-
CSV
XLS
XLSX
If the file already exists the program prompts to overwrite the file.
The file is located in the 'Path for Export data' the file name is based on the date.
e.g. VARDEPLIST 2015-11-19 1420.xls
The file line of the file contains the following 5 text headings:
The following lines list all the places where a variable is used, for example:-
1. BASE-CABINET,,, BCAB1
This means the variable BCAB1 is used in the product BASE-CABINET (and not in any
part, machining or drawing)
2. BASE-CABINET,BASEPART1,,BCAB2
This means variable BCAB2 is used in product BASE-CABINET and part BASEPART1,
but not in a machining item or drawing.
3. BASE-CABINET,,MCH1,,BCAB3
This means variable BCAB3 is used in product BASE-CABINET and machining drawing
MCH1, but not in a part or a drawing
4. ,TPART1,,,VAR2
This means the variable VAR2 is not in any product, machining item or drawing but is
used in part TPART1.
The first items in the file are based on product variables and below (parts belonging to the
product and associated drawings), then variables used for any remaining unused parts
and below, next any remaining machining drawing and finally any remaining drawing
library items.
Optimising program setup - stand alone operation is a way of running the program with
no operator input BUT a lot of information still comes from the Optimising program which
has to be set up in the usual way. That is, parameters set and co-ordinated, boards and
materials available in the Board library, drawings available in the Machining library etc.
Make sure that the operations work using the FULL program before attempting to create
the stand alone operation
Instructions - these are specific for each stand alone item so follow the examples
carefully .
A typical task is to import parts from a PTX file as a stand alone operation. Run the
program IMPORT.EXE from a user profile. This can be from a batch file or from a
shortcut or by using the Windows option Start - Run. For example, using a Windows batch
file the commands are:-
User profile - It is important to run the program from a user profile to locate the system
parameter settings for paths and other values required.
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file IMPORT.ERR
Using program Import services with other systems via the command line or a batch file
The stand alone import mode of the import program allow users to specify Unicode format
files by using /UTF-8 or /UTF-16LE on the command line
Format
/FORMAT:nn
16 - BDX format
17 - Board list - User defined order ASCII/Unicode CSV
20 - XLS parts
21 - XLSX parts
30 - XLS boards
31 - XLSX boards
For example:
When using /FORMAT the program runs in silent mode (same as /AUTO) and any errors
are sent to a .ERR file.
Delete
/DELETE
Overwrite
/OVERWRITE
Only applies to types 12 and 15. /OVERWRITE command means overwrite all existing
files.
Rename
/RENAME
Batch name is allocated a unique number from the same series as quotes/requirements
(sonumber.ctl). The part list names are created by using the first five digits of the batch
number and the first 3 characters of the job list name.
00004.BTC
00004WRK.PRL
00004NST.PRL
It is important to ensure that, when using this option, the first three characters of each job
name are unique within that PTX file. You cannot have, for example, 'BSR10' and 'BSR15'
as job names unless these are placed in separate PTX files.
Silent
/AUTO
Alternative commands
These commands can be used as an alternative to the FORMAT command. When using
these commands the relevant import parameter is used for the import format and the
System parameter: Path for import data must be set
Errors - When you work with a command like '/AUTO' so that a program runs in 'silent'
mode this means that the usual method of reporting errors is not available because the
on-screen list of errors cannot be displayed. Any errors are stored in the file
IMPORT.ERR
Delete product requirement import files - these can be deleted after import. This is done at
the Import - Requirements dialog box. Check the box 'Delete files after import'.
Import files can also be deleted when running the program in the stand-alone mode. Use
argument /DELETE to give the command line:
User defined
/UDF
Where there is an import parameter for user defined parts or boards the parameter file
can be specified on the command line with the UDF option.
Where the file name includes spaces the name must be enclosed in quotes.
The /UDF argument only applies if /FORMAT:6 or /FORMAT:7 are also set.
Separator
/SEP:<separator>
/SEP:58
/SEP:":"
The separator is either the decimal Ascii number or the character enclosed in quotes
The separator can be any ASCII code between 32 and 127 except the following (0 to 9, A
to Z or a to z).
/NOWRTBRD
Stops the program deleting the existing board list - this allows the program to re-use a
board list.
Using program Output services via the command line or a batch file to print or export data
This allows printing or export of runs / summaries. There are several different options
available:-
/PRINT - print
/EXPORT - export to ASCII files
/EXPORT /MDB - export to Access database
Printing
For example:-
For example:-
For example:-
Export to XLS/XLSX
Errors
A Batch Summary
B Management Summary
C Pattern Summary
D Part Summary
E Board Summary
F Offcut summary
G Distribution summary
H Input summary
I Destacking summary
J Pattern drawing
K Part sizes for pattern
L Cutting dimensions
M Pattern preview
N Edging summary
O Material summary
P Machine times
Q Saw loading summary
R Station summary
T Job costing
U Fittings
V Operations
Y Sundry parts
1 Nested Preview
2 Nested Drawings
3 Saw simulation
4 Nested pieces
5 Nested parts
6 Batch material summary
The location of exported files can be temporarily overridden when exporting review
runs data by using the OUTPUT program in stand alone mode.
The command line argument is /EXPORTPATH followed by the path for export data. This
path can also be a UNC path, for example:-
If a path contains spaces then the path must be surrounded with quotes, for example:
If the path specified is not valid the export does not take place
Send to PDF
Send to PDF
'/PRINT' is not needed if '/PDF' is used. To use PDF there must be at least one printer
driver installed on the system.
A typical task is to export some of the reports to an ASCII file Run the program
OUTPUT.EXE from a user profile. This can be from a batch file or from a shortcut or by
using the Windows option Start - Run. For example, using a Windows batch file the
commands are:-
In this example the reports exported are the Pattern Summary (C) and the Part summary
(D). The current run is used unless the /RUN option specifies a different run.
User profile - It is important to run the program from a user profile to locate the system
parameter settings for paths and other values required.
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file OUTPUT.ERR
Note - If these commands are to be run from the Auxiliary menu then the equals sign
should be replaced with a colon.
Board library
BOARD [ /BDX]
This creates the file brdlib.bdx in the path set by the system parameter: Path for Export
data
..\BOARD /BDX
The program should be run from a 'User profile' either by running the program from
that profile (with the Windows Run command or a Batch file) or by setting the 'Start
in' option on a shortcut.
CD \USER1
C:\USER1\BOARD.EXE /BDX
Part library
Use the /EXPORT command line argument. This creates a file: PRTLIB.csv
c:\V12\PARTS.EXE /EXPORT
Product library
Use the /EXPORT command line argument. This creates a file: MPRODLIST.csv (for
millimeters) or IPRODLIST.CSV (for inches).
c:\V12\PRODLIB.EXE /EXPORT
Many operations such as optimising work as a batch operation - even if, for example, only
one cutting list is optimised.
For stand alone operation you often need to run the batch process - the following are the
instructions to achieve this.
filename - the name of the file to apply batch operations to. Batch file (filename.BTC),
part list (filename.PRL), or cutting list (filename.CTT).
Square brackets [ ] indicate that the command is optional. If no filename is specified the
current batch is used.
For example:-
For example:
A batch file to import parts from a pattern exchange file (ptx) , optimise the batch and
transfer information to the saw and machining centre.
Note - during optimisation any cutting lists or board lists that do not exist are automatically
created.
If no name is specified for a batch optimisation (e.g. BATCH.EXE /AUTO /OPTIMISE), the
current batch is used and any cutting lists that do not exist for the batch are created.
If a filename is specified for a batch optimisation but there is no file extension the program
looks for <filename>.BTC first, <filename>.CTT next and <filename.PRL last. If none of
these exists, an error message is placed in the error file (!.ERR)
The system of automatically dividing cutting lists that apply when optimising from the part
list program also applies for BATCH.EXE standalone optimising. This is based on the
'Optimise options' and 'Category for part list divide' system parameters.
To perform the auto-divide the command line for BATCH.EXE needs the file name with
extension
e.g.
BATCH.EXE 84326.CTT /AUTO /OPTIMISE
If no file is specified the optimisation uses the current batch which is created by the import
process and this is not divided. If no extension is specified (e.g. “84326”) the optimisation
will also read and optimise the batch file (btc) with that name and will not auto-divide.
The above assumes that the cutting lists exists, if it does not then the extension PRL
should be used
e.g.
BATCH.EXE 84326.PRL /AUTO /OPTIMISE
Import user defined parts - import parameter file for user defined parts can be specified on
the command line. This is handled with the /UDF command line argument.
This uses the user defined format 02 which has .IMP as its file extension. Errors are
output if the user defined format file does not exist.
The /UDF argument only applies if /FORMAT:6 or /FORMAT:7 is used, any other format
will generate an error message.
Import user defined product requirements - The /UDF command line argument can also
be used to specify the product requirement import parameter file when import products.
Remaining parts - in /AUTO mode there is no dialog to save any remaining or invalid parts
(if they exist). Invalid parts are reported in the error file.
- For stand alone operation - the parameter 'Prompt before modifying existing list'
parameter is ignored and all board lists are updated if possible.
A Windows batch file to import parts from a pattern exchange file (ptx) , optimise the
batch and transfer information to the saw and machining centre.
..\IMPORT %1 /FORMAT:8
..\BATCH /AUTO /OPTIMISE
..\SAWLINK /AUTO /1
Note - during optimisation any cutting lists or board lists that do not exist are automatically
created.
%1 is the usual Windows batch command line variable which is a place holder for the file
name.
User profile - It is important to run the programs from a user profile to locate the system
parameter settings for paths and other values required
Errors - when a program runs in 'silent' mode this means that the usual method of
reporting errors is not available because the on-screen list of errors cannot be displayed.
Any errors are stored in the file !.ERR
Ignore errors
/IGNOREBRDERR
This can be useful where the list contains boards of zero dimension ( 0 x 0 ) which
remain in the board list, for example, when using combination materials.
Using program Stock control services via the command line / batch file
Import stock
filename - file with stock information. This must include the correct file extension.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
The Unicode format of files can be configured for stock import into the board library by
using either /UTF-8 or /UTF-16LE on the command line.
e.g. STOCK MyBoards.bdx /IMPORTSTOCK /UTF-8
The format can be set via the System parameters in the user profile or via the
/FORMAT switch. The format must match the file name extension.
0 - BRD format
1 - BDX format
2 - Bargstedt stock file BESTAND.STK
3 - External SQL database
4 - User defined order – ASCII/Unicode CSV
5 - User defined order - Excel XLS
6 - User defined order - Excel XLSX
To also add any new stock (Board and offcuts) use the /ADDNEWSTOCK switch.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
To increase / decrease any existing stock values with those in the import file use the
/UPDATEEXISTING switch
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
For the BDX format only - a separator can be specified; this is useful where the
BDX fields are separated by a character other than a comma, for example a colon.
Overwrite stock
filename - file with stock information. This must include the correct file extension.
The basic operation is to add new stock (Boards and offcuts) to the library.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
The format can be set via the System parameters in the user profile or via the
/FORMAT switch. The format must match the file name extension
The numbers for the /FORMAT switch are:- 0 - BRD format, 1 - BDX format, 2 - Bargstedt
stock file BESTAND.STK.
Import file
MFC15-03 2440 x 1220 98
MFC15-04 3660 x 1830 15
MFC15-05 2010 x 1680 61
0 = do nothing
1 = clear quantities
2 = remove items
3 = remove items and delete empty materials
The relevant system parameters must be set to make the link to the external database.
Issue stock
STOCK /ISSUESTOCK
This issues stock for the current run. This can also include the command: /OPT to control
the stock update, e.g.
Options are:-
1 - Adjust boards
2 - Adjust offcuts
3 - Add offcuts
4 - Adjust edging
5 - Adjust fittings
6 - Adjust monthly summary
Reserve stock
STOCK /ALLOCSTOCK
Reservation records are assigned the current date in the 'cut date' field.
Reset Transactions
STOCK /RESET
Produces the End of Month / Year report. Stock transactions (audit trail) are automatically
exported to an external file. The external file is located in the: Path for Stock libraries (if
set) other it is located in the Path for library data. For example:-
/UDF
Example: /UDF:"board import"
The default extension is ubx. If the file name is not set the program uses the file
specified in system parameters.
The /SEP option takes precedence over the separator specified in the board import
parameters.
Notes
- separator can be any ASCII code between 32 and 127 except the following (0 to 9,
A to Z or a to z).
- for /FORMAT the program runs in silent mode and any errors are sent to a .ERR
file.
STOCK /MINFREESTOCK
The output defaults to all materials rather than prompting for a range. The minimum
free stock report appears on screen and may be printed in the usual way.
User defined
/UDF
The default extension is ubx. If the file name is not set the program uses the file specified
in system parameters.
The /SEP option takes precedence over the separator specified in the board import
parameters.
Separator
/SEP:<separator>
/SEP:58
/SEP:":"
The separator is either the decimal ASCII number or the character enclosed in quotes.
The separator can be any ASCII code between 32 and 127 except the following (0 to
9, A to Z or a to z).
Calculation of parts
/CALCPARTS
/IGNORENULL
If this is used then any NULL values in the file will not be used to blank out variable
answers during the import process.
Errors
Any errors created during import and generation of the product requirement file,
part list and cutting list files are placed in the PRODIMP.ERR file.
Note
/CALCPARTS can only be used in standalone mode and therefore needs to be run with
the /AUTO command.
SAWLINK [/Switches]
Use the various switch options to specify the details of the transfer, for example:-
..\sawlink /AUTO
..\sawlink /AUTO /SAWPATH="c:\Saw transfer" /TRANSMODE=6 /CADMATIC=CAD4
Switches
Refer to the Saw transfer parameters for full details of each option
Notes
- For file names and commands with spaces use quotation marks to enclose the text
- Specifying a run to transfer. The run can be either a name or a run number:-
/RUN=00001
/RUN="Week 1"
- The format of the commands reflects the usage in the previous Options command
- /GROUP - this refers to the number of the group in the saw transfer parameter list. The
first group in the list is group 1 and the next group 2 etc.
Previous commands
- /AUTO, /DELETE, and /number are the previous commands - these can still be used in
the same way. But do NOT use with any of the other commands; in this case /number
means that any other command options are ignored. This also applies to the new
/GROUP command.
'Automatic and silent' - means that the transfer program does not use screen displays or
report prompts and errors on screen. Transfers the current batch of runs.
Run files are deleted from the directory set by the System parameter: Path for data, when
the whole batch is successfully transferred to the saw. Only files associated with the
current batch are deleted (<run>.*).
/n saw number
The 'n' stands for the number of the item in the saw transfer parameter list.
Previously for saw transfer the /DELETE option also deleted any parameter files
associated
with run. This is no longer done. The files deleted are:-
Run name.* - any file matching the run name in the Path for data
Cutting list (.ctt) - from 'Path for part lists' if set or 'Path for data' otherwise
Part list (.prl) - from 'Path for part lists' if set or 'Path for data' otherwise
Board list (.brd) - board list associated with the run
Batch file (.btc)
Use this switch for stand alone saw transfer to separate offcut patterns to a different
run (/SEPARATEOFCRUNS=1).
The DXF saw transfer options can be specified as a command line option for stand
alone operation.
/DXFOPTIONS=1:0:1:1
The four digits correspond to the for layers so in the above example the BOARD layer
and OFFCUT layer would be included in the DXF files and the PART and CUT layers
would not. By default if no DXF options are specified then all layers are generated.
Lite
The backup process can also be activated from the command line. Program must run
from a User profile
/AUTO - silent operation (any errors are stored in a backup.err file in the user
profile).
/PATH - override current System parameter: Path for backup and place the backup
file in a different directory/folder
In this example a Windows batch file is used to control the process of importing a part list
from a pattern exchange file and optimising the part list.
..\import %1 /format:8
..\batch %1 /optimise /auto
The batch file example2.bat is run from a Windows shortcut which provides the name of
the file to import.
The 'Start in' box is important since the batch file must be located in or start in the V12
user profile.
Errors - if an error occurs .ERR files are created in the user profile, for example,
IMPORT.ERR. These are text files and can be viewed with any Windows text editor or
Word processor.
In this example a part list is imported from a pattern exchange file, optimised and the
Board summary exported to a spread sheet. The batch file (example4.bat) contains:-
..\import %1 /format:8
..\batch %1 /optimise /auto
..\output /export /reports=E
The last two lines copy the resulting EXD file to CSV and load it into a spread sheet. The
spread sheet commands will vary depending on the system used.
The batch file is located in a user profile (in this case V12demo).
Note - the second value of the system parameter: Run - last, use part list must be set so
that the output files (ptn and exd) have the same name as the part list that is imported and
optimised.
The batch file example4.bat is run from a Windows shortcut which provides the name of
the file to import.
In this case the file extensions are not used (they are not needed) as they would clash
with the operation of the batch file.
The result is the board summary data loaded into a spread sheet ready for use.
There are various stand alone options for the Online label PC, the Saw Queue, and Saw
Simulation programs but these are part of the operation of the programs themselves and
are covered in the Help.
Most of the portions of the Optimising software can be run directly from the command line
but there is not really any purpose in this and it is safer to run the full program in the usual
way. To restrict access to some parts of the program use System parameters or purchase
security keys with a restricted set of modules available e.g. Parts Only.
Use the Auxiliary menu on the main menu screen to set up links to other programs. This
is usually a better method than using a batch file to achieve the same result.
Stand alone program for direct conversion from Pattern Exchange to CADmatic 3/4/5
(recursive)
Maximum length for filename: 150 characters - within this the name has a maximum
length of 50 characters (e.g. c:\V12\import\job325-exchangefile-01.ptx )
The program and most dialogs for paths support all these types of path specification.
There are restrictions on the overall length of the path and some characters are
not allowed in path names. Paths can include spaces and dots.
\\Testbed09\os (c)\V12\V12.exe
destination - argument to specify the path where .saw files are created (e.g.
c:\cadv40\data\saw)
CADlink has also been updated to allow the use of CPOUT import/export parameters
when working with CPOUT files. The parameter file name to be used should be specified
after the /IMPORT_CPOUT command line option separated by a colon
Examples:
If the name of the CPOUT file does not match the format specified in the parameters, it
will not be imported.
/BACKGROUND[:n]
/DELETE
/HIDE
/RESULT=[path]
/INF=[n-m]
/UDI=[n-m]
/IMPORT_CPOUT=[filename]
/CAD3
/CAD3R
/CAD4
/CAD5
/UPPERCASE
The following can also be used as an alternative to the filename and destination
arguments.
/FILENAME=filename
/DESTINATION=destination
Example
Note
If no options are used program looks for '*.ptx' in the current working directory. This allows
the program to run just by double-clicking in Windows Explorer.
Irrespective of foreground / background mode, the program must pass certain tests
before it can begin processing files. If these tests fail the program terminates with one of
the following (negative) exit codes.
-1 No security key
-2 Access denied to source path (read)
-3 Access denied to destination path (write)
-4 Program initialisation error
When converting a single pattern exchange file CADlink returns the result in the program
exit code. The exit code is zero for a successful import or non zero to indicate an error.
If a wildcard is used (e.g. *.ptx) then for each pattern exchange file which matches the
wildcard pattern the program creates a result file (<ptx name>.rlt).
If all imports are successful, the program exits with code zero otherwise the exit code is
the first error encountered. Pattern exchange files which already have a result file in the
destination path are ignored.
If the program is running in background mode result files are always created / checked
since the program has no exit code. The existence of the .rlt file prevents the program
from continuously importing a bad pattern exchange file.
ASCII/Unicode PTX
[error number]
[field number]
[line number]
MDB PTX
[error number]
[field number]
[table name]
Successful imports have zeros on all three lines. A line number or table name may not
always be applicable, in which case these fields will be zero.
-1 - No security key
The PTX format allows for multiple jobs so more than one .saw file may be created. Job
names are listed in the JOBS record and these names are used to name the saw files.
Note - the program does not attempt to split runs for the saw.
Options
/FILENAME=filename
/FILENAME=c:\V12\import\week1.ptx
Format and restrictions the same as the filename argument (see above)
Examples:
When the CPOUT naming convention is used (cpout.nnn or cpout.nnnnn), the result (.rlt)
and .saw files are named after the extension.
For example:
/DESTINATION=destination
/DESTINATION=c:\cadv40\data\saw
Format and restrictions the same as the destination argument (see above)
Mode to produce either CAD3 or CAD3R saw files rather than the default CAD4 saw files
Examples:
Additional errors may occur in the result file (.rlt) when exporting to CADmatic 3 formats.
Mode to produce CADmatic 4 format saw files (note that if no mode is entered the
program uses this mode as the default)
Examples:
Examples:
This option forces CADmatic .saw files to be created with UPPER case filenames
(including extension) to ensure compatibility with older systems.
In this mode the program does not terminate. It periodically checks the specified path for
PTX files which match and automatically converts new files as they are found. To ensure
that CADlink does not consume too much of the processor time there is a configurable
'sleep' time between checks (n seconds). Format is:-
/BACKGROUND[:n]
/BACKGROUND
/BACKGROUND:10
Delete (/DELETE)
/DELETE
This option also deletes any results (rlt) files matching the pattern exchange files.
Specify the location for the results (.rlt) file(s). Format is:-
/RESULT=[path]
e.g.
/RESULT
/RESULT=c:\ResultsFiles
If this option is not set the results files are created in the same location as the input files. If
the option is set but no path is specified this forces the program to create results files (in
the same location as the Input files).
Note - where a single named file is imported the results file is not automatically created as
the results are returned in the exit codes (see above).
Running CADlink with the /HIDE option runs the program in hidden mode. If CADlink is
also running in background mode (/BACKGROUND) then it can only be terminated via the
Windows Task Manager. Format is:-
/HIDE
The pattern exchange format has two forms of part information box:
When V12 imports the PTX, information box parameters allow the fields in PARTS_INF to
be directed to nominated information boxes. These then take precedence over fields in
the PARTS_UDI which would otherwise populate that box.
CADlink does not have the information box settings required to map PARTS_INF fields to
specific information boxes. Instead this is done by the following options.
/INF=n-m
/UDI=n-m
The relative order of these commands is important, whether they appear in the .ini file or
on the command line. They can be mixed with other arguments but if /INF comes before
/UDI then this dictates the order in the final information boxes in the .SAW file.
The internal default is /UDI /INF, so this results in 60 PARTS_UDI fields followed by 28
PARTS_INF.
Unicode
The "/UNICODE=" option can be used in the cadlink.ini file or as a command line
argument to configure the generation of Unicode files. Valid settings are "UTF8" and
"UTF16LE".
e.g.
/UNICODE=UTF8
/UNICODE=UTF16LE
If the program finds cadlink.ini in the program directory (folder containing cadlink.exe), it
ignores any command-line options and uses this instead.
Lines in the file are identified by the relevant option keyword (e.g. /FILENAME) and can be
in any order.
/FILENAME=filename
/DESTINATION=destination
/BACKGROUND[:n]
/DELETE
/HIDE
/RESULT=[path]
/INF=[n-m]
/UDI=[n-m]
/FILENAME=c:\import\*.*
/DESTINATION=z:\cadpool\online
/BACKGROUND:15
/DELETE
/HIDE
Notes
Passing supplementary optimising, saw, and destacking parameters to the .saw file
Only a few parameters are given in the .ptx file format (mainly in the MATERIALS record).
These are passed directly to the CADmatic in the .saw file but the saw controller may
need additional optimising, saw, and destacking parameters in order to obtain finer control
over the cutting patterns and destacking functions.
To facilitate this, if optimising, saw and material parameter filenames are specified in the
PTX file, the program searches for these files in the program directory (the folder
containing cadlink.exe). Values from these files are passed to the .saw file.
If no parameters are specified in the PTX (the files do not exist or fail to be read) default
values are used.
Similarly the program attempts to read destacking parameters from the program directory
if they are available.
Supported keys
CADlink can run with the CADplan key. The full list of supported keys is:- CADlink,
CADplan, Modular (SI module) and Master keys. Single keys or network keys are
supported.
Tension trims
Specify rip tension trims by using function code '81' in the CUTS record of a PTX
file. The dimension specified in these records represents the tension trim dimension
(less saw blade thickness) output to the CAD4 SAW file.
e.g. saw blade thickness = 4.8mm, overall width of tension trim = 30mm
Use the program Import services for quotes and orders with other systems via the
command line or batch file.
It is sometimes useful, especially for processes that are commonly repeated, to use them
in a link with other programs.
The stand alone options are used for this. Quotes/Orders import can be used in this way.
/QUOTE – necessary for importing quotes, otherwise this program will start in import
requirement mode
User defined
/UDF
Where there is an import parameter for user defined parts the parameter file can be
specified on the command line with the UDF option.
Separator
/SEP:<separator>
e.g.
/SEP:58
/SEP:”:”
The separator is either the decimal ASCII number or the character enclosed in quotes.
The separator can be any ASCII code between 32 and 127 except the following (0 to 9, A
to Z or a to z).
File format
/FORMAT:nn
0 – CSV
1 – XLS
2 – XLSX
e.g. /FORMAT:1
/IGNORENULL
If this is used then any NULL values in the file will not be used to blank out variable
answers during the import process.
Errors
Any errors created during the import and generation of the product requirement file, part
list and cutting list files are placed in the QUOTEIMP.ERR file.
This update introduces a new script driven shell (V12Shell.exe) which provides an
alternative to calling standalone V12 programs from a batch file.
A typical script contains a set of commands very similar to the set of standalone calls
made at present, but provides these benefits:
(a) Control of security key checks to avoid the issue where the first call (eg import) finds a
licence,
but the next call (eg optimise) finds no licence available.
(b) Error handling - all error messages are sent to a single error file in a specified path.
(c) Status file - indicates if errors have occurred or all processes completed.
(d) Control the timeouts in the event that one of the programs hangs
(e) Use of direct interprocess communication between the shell and individual
applications.
The V12Shell program is designed to make use of V12 user profiles which have been
created and set up (paths etc). The program must have exclusive use of the user profile: it
must exist and is locked for the duration of the script.
It is the caller’s responsibility to manage the user profiles and allocate them to different
instances of V12Shell.
To work reliably with a network key, a nethasp.ini file is normally required in the program
folder. This should target the key’s host IP address and have broadcast turned off. In the
absence of a nethasp.ini file, the error ‘No network key licences available’ may not be
reported correctly.
V12Shell Overview
Environment variables can be used (but not set) in the script lines.
The script does not allow other types of batch / script commands like defining variables,
for loops, if-then-else tests etc.
The shell calls each line in the script sequentially and waits for the process to complete. It
then looks for error files before continuing with the next.
It is not necessary to give the full path of V12 executables if they are in the same location
as the V12Shell.exe - just the program name and its arguments.
Extra command line arguments (and / or script header lines) tell the shell:
When the shell terminates, the final status is recorded in the status file (detailed in a later
section). The main status code number is also returned in the V12Shell.exe exit code.
When the shell runs, it creates the status file (or overwrites it if it already exists) and
outputs a status code 0 (meaning ‘In progress’). The specified error file is deleted if it
already exists.
The calling process can abort the script by deleting the status file.
V12Shell runs hidden by default but it also has a visible diagnostic mode for testing (see
later section).
The first argument to the shell is the path of the script file:
e.g
v12shell c:\Scripts\00001.txt
Script header lines can be passed on the command line or stored in the script file. These
have the form:
HDRn=<setting>
Where the <setting> field contains spaces, the command-line version must be enclosed in
quotes.
(e.g “HDR1=C:\User Profiles\User 1”)
Command line settings take precedence over those in the script file.
The ‘Required’ script header lines generate a fatal error if they are not provided (see later
table).
Form:
ARGn=<setting>
Where the <setting> contains spaces, the command-line version must be enclosed in
quotes.
(e.g “ARG1=Value with spaces”)
Command line arguments for HDRn and ARGn can be in any order but the script name is
always the first argument.
Examples
v12shell c:\Scripts\00001.txt
[c:\Scripts\00001.txt]
HDR1=c:\V12\UserProfiles\UserProfile1
HDR2=c:\Errors\00001.err
HDR3=c:\Status\00001.sts
batch.exe 00001 /AUTO /OPTIMISE
sawlink /AUTO /1
[c:\Scripts\00001.txt]
[c:\Scripts\Template1.txt]
HDR1=c:\V12\UserProfiles\%2
HDR2=c:\Errors\%1.err
HDR3=c:\Status\%1.sts
batch.exe %1 /AUTO /OPTIMISE
sawlink /AUTO /1
HDR1:c:\V12\UserProfiles\Profile1
HDR2=c:\Errors\Job00001.err
HDR3=c:\Status\Job00001.sts
batch.exe Job00001 /AUTO /OPTIMISE
sawlink /AUTO /1
0 = In progress
1 = Completed (no errors)
2 = Completed (with warnings - see error file)
3 = Terminated with errors
4 = Terminated by calling process (status file deleted)
The final status code is also returned to the caller in V12Shell’s exit code.
The content of the additional status lines depends on whether the script is still in progress
or has terminated / completed (see previous section).
Script In progress
The status file is updated every time a new command is executed in the script file.
The content of the status file is as follows:
Line 1: 0 - in progress
Line 2: n - line number in original script file
Line 3: cmd - command currently executing
The command (cmd) is the actual command (after arguments and environments have
been substituted). This line starts with the date & time that the command was executed
and it contains the full path to the exe.
Example script:
HDR1=UserProfiles\%2
HDR2=Errors\%1.err
HDR3=Status\%1.sts
IMPORT.EXE %INPUT% /AUTO /PARTS /FORMAT:8 /NOWRTBRD /OVERWRITE
BATCH.EXE %INPUT% /AUTO /OPTIMISE
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=11 /CADMATIC=CAD5
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=6 /CADMATIC=CAD5
OUTPUT.exe /EXPORT /REPORTS=J /EXPORTPATH=C:\Temp\
When executing the line in bold, the status file might be:
0
4
20-Dec-21, 17:21:46 (506), c:\v12Shell\programs\IMPORT.EXE "Parts PTX import" /AUTO /PARTS /FORMAT:8 /NOWRTBRD
/OVERWRITE
Lines 2 & 3 act as a further explanation of an error condition (i.e code 3 in status line 1).
Program timeout
This is the time taken for a network licence to become re-available in the event that an
application stops responding. The default for this is 5 minutes.
Diagnostic mode
V12Shell runs hidden by default but it also has a visible diagnostic mode for testing.
Diagnostic mode is activated by the /DIAG argument which can appear anywhere on the
command line. For example:
In diagnostic mode, the program displays the script header lines and command line
arguments, the script contents (with a highlight to indicate the current line) and the current
progress / final status.
When running in diagnostic mode V12Shell must be closed manually (X) when the script
terminates.
The ‘Line status’ column shows information about each line in the script as it executes /
completes.
The ‘Additional’ column shows the script line with any arguments / environment variables
substituted.
The text on the diagnostic dialog appears in English by default. To display text from a
named language file, add the name of the language file (without extension) to the /DIAG
argument as shown in the following examples.
/AGE=<number of days>
/NORECYCLE indicates that deleted files are not sent to the recycle bin
Using program Formout services via the command line to print form/labels
Arguments
data source - the name of the file containing data to be printed. e.g. a part list
filename when using a part list form.
The data source is either a part list/cutting list filename, a quote filename, a
requirements filename or a batch filename (for cutting patterns and runs). If no
batch filename is specified, the current batch is used.
The /PRINT argument is used to specify a different printer, otherwise the default
printer will be used.
The /EXPORT argument is used to export the contents to image files instead of printing.
These files will be generated in the path for export. They will use the file format specified
inside the form/label design.
The files are generated in a folder below the path for export and are based on the
design file specified and the file name/run.
The folder is named after the design file and then the filename or run.
e.g. If basic part list generates 4 labels then it would generate 4 files called:
basic part list-0001.jpg
basic part list-0002.jpg
basic part list-0003.jpg
basic part list-0004.jpg
The /EXPORTPATH argument is used to override the path for export and use a different
path.
FORMOUT.EXE can be called inside a batch file to do multiple form/label print requests.
e.g. example.bat
@echo off
..\..\formout "part list form - 1d barcode_fp" "basic part list"
..\..\formout "board details_fn" "nesting - dxf"
Error handling
If the printer name specified is not found then the following error message will
be added to the file formout.err:
If the TLF filename specified does not exist then the following error message will
be added to the file formout.err:
e.g.
Here is the list of TLF extension types where _F* refers to forms and _L* refers
to labels
If the data file is not found then the following error message will be added to
the file formout.err:
Even when parts of the program are running in 'stand alone' mode the parameters must
be set up in the same way as for the full program. So System parameters, Import
parameters, Machine centre parameters etc. must be set for the stand alone options to
operate correctly.
System parameters
For any import, export or stand alone option to work correctly set up the relevant system
parameters. The sub-sets described in this section are the ones that typically require
attention.
To locate the system parameters select the following at the main screen.
There is just one set of system parameters for each User profile.
The settings apply to all the data and operations in a user profile.
System parameters
Measurement mode
- millimetres
- decimal inches
- fractional inches
Millimetres are the standard metric measure to one decimal place. e.g.1230.5mm
96.5mm
Decimal inches are inches expressed as decimals. e.g. 60.125 in. 12.500 in.
Fractional inches are inches expressed as imperial fractions. e.g. 3-1/4 in. 25-3/16 in.
The measurement mode is usually the same measurement mode as the saw, machining
centre or other machinery.
If the path does not exist the program prompts to create the path.
Note - if the path contains names of two or more directories that do not exist the program
does not create the directories
Typical data to import are part lists, board lists and product requirements.
For example:-
C:\VER\EXPORT
If the path does not exist the program prompts to create the path
Note - if the path contains names of two or more directories that do not exist the program
does not create the directories
Summaries
Part and product costing data
Operations and fittings
Cutting list
There are separate paths for import and export so files can be imported from one
directory and exported to another.
- The choice of layout and data exported are set in the Review runs - Parameters
('Exported' button)
Some data and reports are only available with the appropriate module
- no extra data
- cutting times
- offcuts
- cutting dimensions
- edging
- part drawings
- transfer part drawings to saw
- destacking
- baseboard cutting list
- exported cutting list (parts only)
- exported cutting list (parts and boards)
- convert destack data for CADmatic (BSB/SDS)
The program uses the extra data when producing reports, such as, the offcut, edging, and
destacking summaries. Only select those items you need as this speeds up the operation
of the program. For example, if not making use of offcuts there is no need to create the
data for the offcut report.
Note - For cutting length value on the Management summary select Cutting times
Order of dimensions
The part 'Dimensions' are the Length and Width of the part. Set this parameter to choose
which order the length and width columns appear on the screen.
- Length Width
- Width Length
In Europe most lists of sizes appear in the order Length-Width but the order Width-Length
is more frequently used in the USA and Canada.
The order applies wherever the part length and width are displayed e.g. Board library, Part
list, Review runs reports.
The columns 'Max. Parts' and 'Max. Boards' show the maximum values for part and board
lists for each format. The software automatically divides lists that have more than the
maximum parts into smaller units. Control the maximum number of board types by editing
the board list or board library.
- For the 'Optisave' format the length of each information box is limited to 30 characters.
Also set the System parameter: Create data for so that exported data is created. If lists
are divided the type of division is set in: System parameters
Import parameters
These control the type of import for parts, patterns and boards. They are available at the
Import dialog (e.g. File - Import parts). Then select: File - Parameters.
Import parameters
These can be used to, for example, set the type of Import (e.g. from PTX) and specify the
separator used between fields.
For transfer to the saw set the saw transfer parameters for each saw.
- Parameters
- Saw transfer parameters
Make sure the 'Path' and 'Mode' are correct for the saw.
Information boxes
Where the data for parts includes extra information such as detailed edging data, tracking
numbers, finished sizes etc. make sure that the Information boxes are correctly set up to
cope with the incoming data for import.
Use the Information box parameters for this. Add pre-defined or user defined boxes as
necessary.
Information boxes
Take care when changing these parameters since they apply to all part lists. It is often OK
to add new items but deleting or changing an existing item may cause a problem with part
lists already using that item.
Where data is imported from an external file use the 'Part list import' parameters to define
that file format so that it can be correctly imported by the program.
This sets up the link between the fields in the external file and the fields in the part list
including information boxes.
Where transfer to a machining centre is involved make sure that the Machining centre is
correctly described in the Machining centre parameters (Main screen - Parameters -
Machining centre parameters)
Nesting parameters
These are used with the Nesting optimisers. They describe the constraints on the nesting
machinery and operation.
Nesting parameters
These are used instead of the Optimising parameters for the Nesting optimisers. There
are also some System parameters that need to be set for Nesting.
Nesting also uses the Machining centre parameters to describe the Machining centre.
The following list shows the most important limits on list sizes, field lengths etc. These
limits apply to the Professional Optimiser.
Item Limit
Max items in part list 20000
Max items in cutting list 20000
Max items in board list 5000
Max items in cutting list per optimization (saw) 9999
Max items in cutting list per optimization (nesting) 4000
Max items in board list per optimization (saw) 5000
Max items in board list per optimization (nesting) 2000
Max material types per run(saw) 5000
Max material types per run(nesting) 2000
Max offcuts in run 7500
Max patterns in run (saw) 5000
Max patterns in run (nesting) 2000
Max dimension for parts and board (mm) 9999
Max parts in a pattern (saw) 5000
Max shapes in a nested pattern 1000
Max value for quantity part / board list 99999
Max run quantity per pattern 99999
Max runs in batch 250
Max length of product code 25
Max length of part code 50
Max length of material code 50
Max length of material code (edging library) 50
Max length of board code 50
Max length of edge code 50
Max length of destacking code 50
Max length of machining code 50
Max length of drawing code 25
Max length of pattern code 25
Max length of machine drawing file ref 9
Max length of run number 50
Max length of Order or Reservation code 50
Max length for Stock order number 50
Max length of variable name 25
Max length of formula name 25
Max length of part description (part library) 25
Max length of product description (prod. library) 25
Max length of memo field (product library) 100
Max. records in product library 99999
Max. records in material library Access mdb