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
var config = {
"formats": {
"ODB1": {
"comments": "", // 描述
"arrStep": "stp",
"isMerge": "yes",
"jobNameRule": "(job)-a"
},
"Gerber274_1": {
"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
},
"Excellon1_1": {
"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
}
},
"cust": {
"c1": {
"path": "C:/Users/Administrator/Desktop/Customer_1",
"db": "genesis",
"rules": [
{
"valid": "", // 文件正则 func true/false
"type": "ODB", // 格式 odb gerber
"format": "ODB1"
},
{
"valid": "", // 文件正则 func
"type": "Gerber274", // 格式 odb gerber
"format": "Gerber274_1"
},
{
"valid": "", // 文件正则 func
"type": "Excellon1", // 格式 odb gerber
"format": "Excellon1_1",
"rename": {}
}
],
"tlname": [
{"orig_name" : "pasttop.art", "tlname" : "past_top" },
{"orig_name" : "pleg.art", "tlname" : "silk_top" },
{"orig_name" : "soldtop.art", "tlname" : "sm_top" },
{"orig_name" : "art(\\d+)\\.art", "tlname" : "layer_(1)"},
{"orig_name" : "soldbotm.art", "tlname" : "sm_botm" },
{"orig_name" : "sleg.art", "tlname" : "silk_bot" },
{"orig_name" : "pastbotm.art", "tlname" : "past_botm" },
{"orig_name" : "multipack.art", "tlname" : "array" },
{"orig_name" : "outline.art", "tlname" : "outline" },
{"orig_name" : "fab.art", "tlname" : "fab.art" },
{"orig_name" : "top-enig", "tlname" : "top-enig" },
{"orig_name" : "bot-enig", "tlname" : "bot-enig" },
{"orig_name" : "fab_page2", "tlname" : "fab_page2" }
]
}
},
"sort_rename": [
{"tlname":"" , "newname":"" } // newname 里支持特殊变量
]
}