导入配置.json 2.37 KB
Newer Older
Scott Sun's avatar
Scott Sun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
{
	"ats": {
		"path": "C:/Users/Administrator/Desktop/Customer_1",
		"step": "cad",
		"ODB": {
			"db": "genesis",
			"files": ["tgz"],
			"arrStep": "stp",
			"isMerge": "yes",
			"jobNameRule": "(job)-a"
		},
		"Gerber": {
			"db": "genesis",
			"files": ["drd", "drl", "phd", "phl"],
			"format": {
				"art": "Gerber274x",
				"drd": "Excellon1",
				"drl": "Wheel",
				"phd": "Gerber274x",
				"phl": "Ascii"
			},
			"editFile": [{
				"filter": "drd",
				"callback": "(function(){ return function(props){ var fs=props.fs,nowFile=props.nowFile,srcFiles=props.srcFiles; var srcFile = srcFiles.filter(function(v){return v.name == nowFile.name})[0]; var str = fs.readFile(srcFile.path).replace(/:/g,''); fs.writeFile(nowFile.path,str.match(/T\\d+|G\\d+|X\\d+\\.\\d+Y\\d+\\.\\d+/ig).join('\\n')); }})()"
			}],
			"gerberConfig": {
				"drd": {
					"nf1": 3,
					"nf2": 0,
					"units": "mm",
					"zeroes": "leading",
					"decimal": "yes",
					"nf_comp": 0,
					"break_sr": "yes",
					"data_type": "ascii",
					"separator": "nl",
					"threshold": 200,
					"drill_only": "no",
					"multiplier": 1,
					"resolution": 3,
					"tool_units": "mm",
					"coordinates": "absolute",
					"merge_by_rule": "no",
					"signed_coords": "no",
					"text_line_width": 0.0024
				},
				"phd": {
					"nf1": 3,
					"nf2": 4,
					"units": "mm",
					"zeroes": "leading",
					"decimal": "no",
					"nf_comp": 0,
					"break_sr": "yes",
					"data_type": "ascii",
					"separator": "*",
					"threshold": 200,
					"drill_only": "no",
					"multiplier": 1,
					"resolution": 3,
					"tool_units": "inch",
					"coordinates": "absolute",
					"merge_by_rule": "no",
					"signed_coords": "no",
					"text_line_width": 0.0024
				}
			}
		}
	},
	"def": {
		"step": "pcs",
		"ODB": {
			"db": "genesis",
			"files": ["tgz"]
		},
		"Gerber": {
			"db": "genesis",
			"files": ["drl", "art"],
			"format": {
				"art": "Gerber274x",
				"drd": "Excellon1",
				"drl": "Excellon2",
				"ipc": "IPC356",
				"phd": "Gerber274x",
				"phl": "Ascii"
			}
		},
		"autoSave": "yes",
		"isDelComp": "yes",
		"delSameJob": "yes"
	},
	"tmp": {
		"path":"C:/Users/Administrator/Desktop/New data",
		"step": "cad",
		"Gerber": {
			"db": "genesis",
			"files": ["drl", "art"],
			"format": {
				"art": "Gerber274x",
				"drd": "Excellon1",
				"drl": "Excellon2",
				"ipc": "IPC356",
				"phd": "Gerber274x",
				"phl": "Ascii"
			}
		}
	}
}