OCP
often
needs to interface to real world data. This means that large
cutting lists are more efficiently handled by automatically importing and exporting data.
OCP exports a cutting list in
a comma delimited file format which can be read by popular database and
spreadsheet programs.
Input
The KEYBOARD may be used to type in
both stock and cutting data.
A comma delimited ASCII file can also be used to enter stock, order and
cutting list data. These files may be created by a 3rd party
program, word processor, database or spreadsheet program.
Consecutive
delimiters are treated as a single delimiter. The first line in the
cut and stock data files is for
the field definitions and is free form text. Length is in decimal feet, decimal inches or
millimeters. You may use a text editor to generated a cut file by
using format below with a file extension of *.cut. Do the same
for the stock (*.stk) file is. The stock file must have the same name as the cut file with the
exception of the extension which has to be *.stk instead of *.cut.
The material designated in the cut file must match the material designated
in the stock file.
__________________
Example cut file:
jobname.cut using the first line of text as a required header
cut_file = cut filename including
path
stock_file.stk = stock filename including path
output_file.txt = output cutting list filename (File path is specified
in the OCP Settings dialog box)
shape = material description. This must match a Material description
within the stock and cut files. No spaces are allowed in the description.
kerf = length of material lost due to cutting
Example Batch File 'OCP.bat'
@ECHO OFF
Rem Generated on 6/19/2001
Rem Batch program that uses OCP.exe to optimize ordering and cutting
Rem Use:
Rem >ocp.exe cut_file stock_file output_file section_name kerf (decimal
feet)
Rem
Rem
path %path%;C:\Program Files\OCP\;
@ECHO ON
ocp.exe mycuts.cut mystock.stk W30x148_A572-42.txt
W30x148_A572-42 0
ocp.exe mycuts.cut mystock.stk W30x148_A572-50.txt
W30x148_A572-50 0
OCP will process the batch file. As
shown, repeated batch calls to OCP.exe with different shapes can process different shapes within
the same stock and cut files.
Export file
File name:
output_file.txtspecifies the file name that will
contain the cutting results. Its directory is specified in the OCP program settings menu. The
default location is:
'C:\Program Files\ocp'
The first line contains the fields names
separated by commas
Subsequent lines contain cutting information
in comma delimited form (example shows units in
millimeters)
Click here and save this file to disk and rename its extension to .exe. Open the file and choose Unzip. A sample ocp.bat, mycuts.cut and mystock.stk will be
saved to the 'C:\Program Files\OCP' folder. Open the OCP.bat file to run
the batch program and create two cutting files - one for each material.
Windows® XP
and Windows Vista™ are trademarks of Microsoft Corporation. SteelLogic
is a registered trademark of Computer Detailing Corporation.
WinEstimator is a registered trademark of
WinEstimator, Inc