Commit cf08b85d authored by Scott Sun's avatar Scott Sun

Merge branch 'master' of http://gitlab.topibd.net/scott.sun/scott

parents 56eabba9 9c93db4b
...@@ -57,14 +57,17 @@ if ($.hasOwnProperty('script_parameter')){ ...@@ -57,14 +57,17 @@ if ($.hasOwnProperty('script_parameter')){
try { try {
var job = Job.toLowerCase() var job = Job.toLowerCase()
console.log("job---------:"+job); var matrix = GEN.getMatrix({job:job})
console.log("GEN_TYPE---------:"+GEN.GEN_TYPE); var sm = Object.keys(matrix).filter(function(v){
console.log("GENESIS_TMP---------:"+GEN.GENESIS_TMP); var item = matrix[v]
console.log("GENESIS_DIR---------:"+GEN.GENESIS_DIR); return item.context=="board" && item.layer_type=="solder_mask"
console.log("GENESIS_EDIR---------:"+GEN.GENESIS_EDIR); })
var jobpath = GEN.getJobPath({job:job}) GEN.openStep({job:job,name:"cad"})
console.log("_____jobpath______:"+_.toString(jobpath)); sm.forEach(function(layer){
console.log("______path:"+GEN.dbutil('path jobs ' + jobname)); GEN.PAUSE(layer)
var info = GEN.copperArea({layer:layer})
GEN.PAUSE(_.toString(info))
})
QDfm.updateRow({ QDfm.updateRow({
table: "pdm_aimdfm_task", table: "pdm_aimdfm_task",
...@@ -95,15 +98,3 @@ catch (e) { ...@@ -95,15 +98,3 @@ catch (e) {
} }
function mkPath(path,list) {
console.log("--path:" + path);
if(list.length){
var newPath = path + '/' + list.shift()
if(!fs.dirExists(newPath)){
fs.mkdir(newPath)
console.log("--mkdir:" + newPath);
}
return mkPath(newPath,list)
} else {return path}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment