Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
Scott
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Sun
Scott
Commits
23a1f4bb
Commit
23a1f4bb
authored
5 years ago
by
Scott Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jtg
parent
472698f3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
13 deletions
+41
-13
JTG_NET_set_drill_attribute_aim.js
jtg/JTG_NET_set_drill_attribute_aim.js
+12
-2
sort_rename_config.js
jtg/config/sort_rename_config.js
+24
-0
JTG_ORG_backup_layers_aim.js
jtg/input原稿/JTG_ORG_backup_layers_aim.js
+0
-0
JTG_ORG_create_outline_aim.js
jtg/input原稿/JTG_ORG_create_outline_aim.js
+0
-8
JTG_ORG_delete_profile_aim.js
jtg/input原稿/JTG_ORG_delete_profile_aim.js
+0
-0
JTG_ORG_input_data_aim.js
jtg/input原稿/JTG_ORG_input_data_aim.js
+0
-0
JTG_ORG_set_origin_aim.js
jtg/input原稿/JTG_ORG_set_origin_aim.js
+0
-0
JTG_PUB_auto_save_job_aim.js
jtg/input原稿/JTG_PUB_auto_save_job_aim.js
+0
-0
JTG_PUB_copy_step_aim.js
jtg/input原稿/JTG_PUB_copy_step_aim.js
+0
-0
JTG_layer_rename_and_sort_aim.js
jtg/input原稿/JTG_layer_rename_and_sort_aim.js
+5
-3
No files found.
jtg/JTG_NET_set_drill_attribute_aim.js
View file @
23a1f4bb
...
...
@@ -125,12 +125,19 @@ try {
var
layerSymsHist
=
GEN
.
getLayerSymsHist
({
job
:
job
,
step
:
step
,
layer
:
layer
});
var
via_symbol
=
Object
.
keys
(
layerSymsHist
).
map
(
function
(
v
){
return
layerSymsHist
[
v
]})
via_symbol
=
via_symbol
.
filter
(
function
(
item
){
if
(
!
item
.
size
&&
item
.
width
){
var
max_tmp
=
item
.
width
>
item
.
height
?
item
.
width
:
item
.
height
item
.
size
=
max_tmp
}
if
(
!
item
.
size
){
item
.
size
=
0
}
return
Number
(
item
.
size
)
<=
max_via_size
})
// 排除少于min_via_num数量的钻孔
via_symbol
=
via_symbol
.
filter
(
function
(
item
){
if
(
item
.
pad
==
0
){
return
false
}
return
item
.
pad
>=
Number
(
par
.
min_via_num
)
})
console
.
log
(
"via_symbols================================:"
+
_
.
toString
(
via_symbol
))
if
(
via_symbol
.
length
){
// 如果via_symbol存在
GEN
.
selClearFeature
()
...
...
@@ -222,8 +229,11 @@ try {
GEN
.
workLayer
({
name
:
layer
,
display_number
:
2
,
clear_before
:
'yes'
})
GEN
.
selRefFeat
({
layers
:
layer_tmp
,
use
:
'filter'
,
mode
:
'touch'
})
// 设置选中的via孔属性
GEN
.
selAddAttr
({
attribute
:
'.drill'
,
option
:
'via'
})
if
(
GEN
.
getSelectCount
()
>
0
){
GEN
.
COM
(
"cur_atr_set,attribute=.drill,option=via"
)
GEN
.
COM
(
"sel_change_atr,mode=add"
)
GEN
.
selClearFeature
()
}
// 删除辅助层
var
deleLayers
=
[
tmp_layer1
,
tmp_layer2
,
tmp_layer2_tmp
,
layer_tmp
]
deleLayers
.
forEach
(
function
(
v
){
...
...
This diff is collapsed.
Click to expand it.
jtg/config/sort_rename_config.js
0 → 100644
View file @
23a1f4bb
[
{
"orig_name"
:
[
"^sa.art$"
,
"^gto$"
],
"tl_name"
:
"gto"
,
"sort"
:
0
},
{
"orig_name"
:
[
"^sb.art$"
,
"^gbo$"
],
"tl_name"
:
"gbo"
,
"sort"
:
1
},
{
"orig_name"
:
[
"^ra.art$"
,
"^gts$"
],
"tl_name"
:
"gts"
,
"sort"
:
2
},
{
"orig_name"
:
[
"^rb.art$"
,
"^gbs$"
],
"tl_name"
:
"gbs"
,
"sort"
:
3
},
{
"orig_name"
:
[
"^gtl$"
,
"^top$"
,
"^top.art$"
],
"tl_name"
:
"gtl"
,
"sort"
:
4
},
{
"orig_name"
:
[
"^l(
\\
d+)_
\\
wgnd
\\
.art$"
,
"^l(
\\
d+)$"
],
"tl_name"
:
"l($1)"
,
"pg"
:
"1"
,
"sort"
:
5
},
{
"orig_name"
:
[
"^l(
\\
d+).*
\\
.art$"
,
"^l(
\\
d+)$"
],
"tl_name"
:
"l($1)"
,
"sort"
:
6
},
{
"orig_name"
:
[
"^gbl$"
,
"^bottom$"
,
"^bottom.art$"
],
"tl_name"
:
"gbl"
,
"sort"
:
7
},
{
"orig_name"
:
[
"^drill-
\\
d+-
\\
d+
\\
.drl$"
,
"^drl$"
],
"tl_name"
:
"drl"
,
"sort"
:
8
},
{
"orig_name"
:
[
"^gm1
\\
.art$"
,
"^gko$"
],
"tl_name"
:
"gko"
,
"sort"
:
9
},
]
[
{
"tl_name"
:
"^gto$"
,
"new_name"
:
"gto"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"silk_screen"
}},
{
"tl_name"
:
"^gts$"
,
"new_name"
:
"gts"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"solder_mask"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"^gtl$"
,
"new_name"
:
"gtl"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"signal"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"l(
\\
d+)"
,
"new_name"
:
"l($1)"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"signal"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"^gbl$"
,
"new_name"
:
"gbl"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"signal"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"^gbs$"
,
"new_name"
:
"gbs"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"solder_mask"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"^gbo$"
,
"new_name"
:
"gbo"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"silk_screen"
}},
{
"tl_name"
:
"^drl$"
,
"new_name"
:
"drl"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"drill"
,
"polarity"
:
"positive"
}},
{
"tl_name"
:
"^gko$"
,
"new_name"
:
"gko"
,
"attr"
:{
"context"
:
"board"
,
"type"
:
"rout"
}},
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
jtg/JTG_ORG_backup_layers_aim.js
→
jtg/
input原稿/
JTG_ORG_backup_layers_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_ORG_create_outline_aim.js
→
jtg/
input原稿/
JTG_ORG_create_outline_aim.js
View file @
23a1f4bb
...
...
@@ -162,14 +162,6 @@ try {
GEN
.
checkInout
({
job
:
job
,
mode
:
"in"
})
}
if
(
/yes/ig
.
test
(
par
.
auto_save
)){
GEN
.
checkInout
({
job
:
job
,
mode
:
"out"
})
// 结束保存料号 关闭料号
GEN
.
saveJob
({
job
:
job
});
GEN
.
checkInout
({
job
:
job
,
mode
:
"in"
})
GEN
.
closeJob
({
job
:
job
})
}
else
{
GEN
.
checkInout
({
job
:
job
,
mode
:
"in"
})
}
QDfm
.
updateRow
({
table
:
"pdm_aimdfm_task"
,
...
...
This diff is collapsed.
Click to expand it.
jtg/JTG_ORG_delete_profile_aim.js
→
jtg/
input原稿/
JTG_ORG_delete_profile_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_ORG_input_data_aim.js
→
jtg/
input原稿/
JTG_ORG_input_data_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_ORG_set_origin_aim.js
→
jtg/
input原稿/
JTG_ORG_set_origin_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_PUB_auto_save_job_aim.js
→
jtg/
input原稿/
JTG_PUB_auto_save_job_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_PUB_copy_step_aim.js
→
jtg/
input原稿/
JTG_PUB_copy_step_aim.js
View file @
23a1f4bb
File moved
This diff is collapsed.
Click to expand it.
jtg/JTG_layer_rename_and_sort_aim.js
→
jtg/
input原稿/
JTG_layer_rename_and_sort_aim.js
View file @
23a1f4bb
...
...
@@ -336,20 +336,21 @@ function setDrill(props){ // 设置钻孔
// 获取所有的钻孔层
var drillLayer = matrix.filter(function(v){
return (v.attr.type == "
drill
" ||
v.attr.type == "
rout
") && v.attr.context == "
board
"
return (v.attr.type == "
drill
" ||v.attr.type == "
rout
") && v.attr.context == "
board
"
})
// 获取所有single层
var signalLayer = matrix.filter(function(v){
return (v.attr.type == "
signal
" || v.attr.type == "
power_ground
") && v.attr.context == "
board
"
})
var layerCount = matrix.length
var layerCount = signalLayer.length
// findSignal 根据传入的数字找到对应的signal层 如 1 => top ; 2 => layer_2
function findSignal(num){
return signalLayer[Number(num-1)].name
}
function doDrill(drills){ // 分析钻孔层
return drills.map(function(v){
if(v.
name == "
drill
" || v.name=="
rout
" || v.name=="
outline
" || v.name=="
drl
"){
if(v.
tl_name == "
drill
" || v.tl_name=="
rout
" || v.tl_name=="
outline
" || v.tl_name=="
drl
" || v.tl_name=="
gko
"){
return {start:findSignal(1), end:findSignal(layerCount), layer:v.name}
} else {
var tmp = /(
\
d+)-(
\
d+)/ig.exec(v.tl_name);
...
...
@@ -364,6 +365,7 @@ function setDrill(props){ // 设置钻孔
})
}
var drillSetList = doDrill(drillLayer); // 分析得到钻孔设置结果
drillSetList = drillSetList.filter(function(v){return v!==0})
drillSetList.forEach(function(v){
GEN.matrixLayerDrill({job:job,layer:v.layer,start:v.start ,end:v.end})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment