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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
{
"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
}
}
}
}
}