If you have a pre-programmed script that you want to run, follow the procedure on this page. The procedure is in two parts: (1) loading the script and (2) running it.
To load a script
IMPORTANT: You receive the script files in an archive. You begin by extracting the files into your installation's JScript folder.
NOTE: If your Version 7 installation is an upgrade from Version 6 or an earlier version, the folder's location will be: C:\Program Files (x86)\EngView Systems\Package & Display Designer Suite\Package Designer\Scripts\JScript.
function Init()
contains all user-editable parameters. Here you will set the folders in which you want the script to execute.
// path where the NCfile will be saved (for GenerateNC)
var NCfileDestinationPath = "D:/Temp/";
//path where the text file will be saved (for scr9662, part of GenerateNC)
var labelFileExportPath = "D:/Temp/";
var dframeName = "57745_PrinzhornScript.evf";
//path where the pdf file will be saved (for scr9664, part of GenerateNC)
var pdfFileExportPath = "D:/Temp/";
//path where the csv file will be saved (for DesignFrameStatisticsOutput)
var statisticsFileExportPath = "D:/Temp/";
var button0 = newTab.AddMacrosButton("JScript", "Type the script's new folder name here", "GenerateNC", imgFolder + "GenerateNC.png", "Generate NC file", "Generate NC file.");
To run the script
The Register dialog box appears.
IMPORTANT: If the license you work with — network or local protection — does not feature these modules, write to support@engview.com to request them.
A message appears prompting you to restart the program before the scripts can be used.
After the program has restarted, the script files are loaded. The script's icons appear on a separate Scripts toolbar.