mytest.js 363 Bytes
Newer Older
Scott Sun's avatar
s  
Scott Sun committed
1

Scott Sun's avatar
Scott Sun committed
2 3 4 5 6 7 8 9
// 引入模块 包
var $ = require('topcam.scriptfunc').argv();
var fs = require('fs');
var _ = require('lodash');
var IKM = $.ikm;
var GEN = $.gen;
var GUI = $.gui;
var Job = $.job;
Scott Sun's avatar
s  
Scott Sun committed
10
var JobId = $.job_id;
Scott Sun's avatar
Scott Sun committed
11

Scott Sun's avatar
Scott Sun committed
12
try {
Scott Sun's avatar
Scott Sun committed
13

Scott Sun's avatar
Scott Sun committed
14
    GEN.getTool({units:"mm"})
Scott Sun's avatar
Scott Sun committed
15
    GEN.renameStep({job:'demo',name:'pcb_1',new_name:'pcb_a'})
Scott Sun's avatar
s  
Scott Sun committed
16
    
Scott Sun's avatar
s  
Scott Sun committed
17
    return "Done"
Scott Sun's avatar
Scott Sun committed
18 19
} catch (e) {
	return "Error"
Scott Sun's avatar
Scott Sun committed
20
}