{
	"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
				}
			}
		},
		"formatData": {
			"rename": {
				"rule1": [
					{ "orig_name" : "isl(\\d+)", "new_name" : "l(1)" },
					{ "orig_name" : "d_top_.+(\\d+)", "new_name" : "d1-(1)" },
					{ "orig_name" : "d_.+(\\d+)_bottom", "new_name" : "d(1)-(last)" },
					{ "orig_name" : "d_.+(\\d+)_.+(\\d+)", "new_name" : "d(1)-(2)"}
				],
				"rule2": [
					{ "orig_name" : "p2ml7040_d(\\d)(\\d)\\.drd", "new_name" : "d(1)-(2)" },
					{ "orig_name" : "p2ml7040_l(\\d+)\\.phd", "new_name" : "l(1)", "tp": true }
				]
			},
			"sort": {
				"sort1": [
					{"name":"sst","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"spt","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"smt","context":"board","type":"solder_mask","polarity":"positive"},
					{"name":"top","context":"board","type":"signal","polarity":"positive"},
					{"name":"l(\\d+)","context":"board","type":"signal","polarity":"positive"},
					{"name":"bottom","context":"board","type":"signal","polarity":"positive"},
					{"name":"smb","context":"board","type":"solder_mask","polarity":"positive"},
					{"name":"spb","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"ssb","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"d(\\d+)-\\d+","context":"board","type":"drill","polarity":"positive"},
					{"name":"drill","context":"board","type":"drill","polarity":"positive"},
					{"name":"rout","context":"board","type":"rout","polarity":"positive"}
				],
				"sort2": [
					{"name":"l(\\d+)","context":"board","type":"signal","polarity":"positive"},
					{"name":"d(\\d+)-\\d+","context":"board","type":"drill","polarity":"positive"}
				]
			},
			"setDrill": {
				"info": "yes"
			},
			"autoSave": "yes"
		}
	},
	"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",
				"drl": "Excellon2"
			},
			"gerberConfig": {
				"drl": {
					"nf1": 2,
					"nf2": 3,
					"units": "inch",
					"zeroes": "leading",
					"decimal": "no",
					"nf_comp": 0,
					"break_sr": "yes",
					"data_type": "ascii",
					"separator": "nl",
					"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
				},
				"art": {
					"nf1": 3,
					"nf2": 5,
					"units": "inch",
					"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
				}
			}
		},
		"formatData": {
			"rename": {
				"rule1": [
					{ "orig_name" : "pasttop.art", "new_name" : "past_top" },
					{ "orig_name" : "pleg.art", "new_name" : "silk_top" },
					{ "orig_name" : "soldtop.art", "new_name" : "sm_top" },
					{ "orig_name" : "art(\\d+)\\.art", "new_name" : "layer_(1)", "tp": true },
					{ "orig_name" : "soldbotm.art", "new_name" : "sm_botm" },
					{ "orig_name" : "sleg.art", "new_name" : "silk_bot" },
					{ "orig_name" : "pastbotm.art", "new_name" : "past_botm" },
					{ "orig_name" : "multipack.art", "new_name" : "array" },
					{ "orig_name" : "outline.art", "new_name" : "outline" },
					{ "orig_name" : "fab.art", "new_name" : "fab.art" },
					{ "orig_name" : "top-enig", "new_name" : "top-enig" },
					{ "orig_name" : "bot-enig", "new_name" : "bot-enig" },
					{ "orig_name" : "fab_page2", "new_name" : "fab_page2" }
				]
			},
			"sort": {
				"sort1": [
					{"name":"past_top","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"silk_top","context":"board","type":"silk_screen","polarity":"positive"},
					{"name":"sm_top","context":"board","type":"solder_mask","polarity":"positive"},
					{"name":"top","context":"board","type":"signal","polarity":"positive"},
					{"name":"layer_(\\d+)","context":"board","type":"signal","polarity":"positive"},
					{"name":"bottom","context":"board","type":"signal","polarity":"positive"},
					{"name":"sm_botm","context":"board","type":"solder_mask","polarity":"positive"},
					{"name":"silk_bot","context":"board","type":"silk_screen","polarity":"positive"},
					{"name":"past_botm","context":"board","type":"solder_paste","polarity":"positive"},
					{"name":"array","context":"board","type":"drill","polarity":"positive"},
					{"name":"l(\\d+)-\\d+","context":"board","type":"drill","polarity":"positive"},
					{"name":"b(\\d+)-\\d+","context":"board","type":"drill","polarity":"positive"},
					{"name":"outline","context":"board","type":"rout","polarity":"positive"},
					{"name":"fab.art","context":"board","type":"rout","polarity":"positive"},
					{"name":"top-enig","context":"board","type":"rout","polarity":"positive"},
					{"name":"bot-enig","context":"board","type":"rout","polarity":"positive"},
					{"name":"fab_page2","context":"board","type":"rout","polarity":"positive"}
				]
			},
			"mergeDrill": "",
			"setDrill": {
				"info": "yes"
			},
			"autoSave": "yes"
		}
	},
	"tmp_1": {
		"Gerber": {
			"gerberConfig": {
				"drl": {
					"nf1": 2,
					"nf2": 5,
					"units": "inch",
					"zeroes": "none",
					"decimal": "no",
					"nf_comp": 0,
					"break_sr": "yes",
					"data_type": "ascii",
					"separator": "nl",
					"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
				},
				"art": {
					"nf1": 2,
					"nf2": 5,
					"units": "inch",
					"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
				}
			}
		}
	}
}