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
bf61f734
Commit
bf61f734
authored
4 years ago
by
Scott Sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.topibd.net/scott.sun/scott
parents
00c34fcf
2a1e0011
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
2 deletions
+55
-2
ATS_AIM_input_data.js
ats/topcam/ATS_AIM_input_data.js
+0
-0
ATS_AIM_layer_rename_and_sort.js
ats/topcam/ATS_AIM_layer_rename_and_sort.js
+0
-0
scotttest.js
public_script/scotttest.js
+55
-2
No files found.
ats/topcam/ATS_AIM_
data_input
.js
→
ats/topcam/ATS_AIM_
input_data
.js
View file @
bf61f734
File moved
This diff is collapsed.
Click to expand it.
ats/topcam/ATS_AIM_
data_forma
t.js
→
ats/topcam/ATS_AIM_
layer_rename_and_sor
t.js
View file @
bf61f734
File moved
This diff is collapsed.
Click to expand it.
public_script/scotttest.js
View file @
bf61f734
...
...
@@ -280,9 +280,29 @@ SVGZoomAndPan(adsjjjjwuudndlwnanmh()
// IKM.msg(feas[0].feats)
// var ret = genMath.profile2Polygon(feas[0].feats)
// COM tools_tab_reset
// COM tools_tab_add,num=1,shape=hole,type=via,min_tol=0,max_tol=1,bit=,drill_size=300
// COM tools_tab_add,num=2,shape=hole,type=via,min_tol=0,max_tol=0,bit=,drill_size=500
// COM tools_tab_add,num=3,shape=hole,type=plate,min_tol=0,max_tol=0,bit=,drill_size=700
// COM tools_tab_add,num=4,shape=hole,type=plate,min_tol=0,max_tol=0,bit=,drill_size=800
// COM tools_tab_add,num=5,shape=hole,type=plate,min_tol=0,max_tol=0,bit=,drill_size=900
// COM tools_tab_add,num=6,shape=hole,type=plate,min_tol=0,max_tol=0,bit=,drill_size=1000
// COM tools_tab_add,num=7,shape=hole,type=nplate,min_tol=0,max_tol=0,bit=,drill_size=1600
// COM tools_tab_add,num=8,shape=hole,type=plate,min_tol=0,max_tol=0,bit=,drill_size=3000
// COM tools_tab_add,num=9,shape=hole,type=nplate,min_tol=0,max_tol=0,bit=,drill_size=3300
// COM tools_set,layer=drl,thickness=3235.96,user_params=,slots=no
setTool
({
job
:
job
,
step
:
step
,
layer
:
"drl_tmp"
,
callback
:
function
(
toolinfo
)
{
IKM
.
msg
(
toolinfo
)
}
})
// 保存
if
(
/yes/ig
.
test
(
par
.
auto_save
)){
...
...
@@ -352,4 +372,37 @@ function getRodate(props){
var
x
=
xe
-
xs
;
var
r
=
Math
.
atan
(
y
/
x
)
return
r
*
180
/
Math
.
PI
}
function
setTool
(
props
)
{
var
job
=
props
.
job
;
var
step
=
props
.
step
;
var
layer
=
props
.
layer
;
var
tool_info
=
GEN
.
getTool
({
job
:
job
,
step
:
step
,
layer
:
layer
,
units
:
"mm"
})
// 操作tool_info
props
.
callback
(
tool_info
)
GEN
.
COM
(
"tools_show,layer="
+
layer
)
GEN
.
COM
(
"tools_tab_reset"
)
var
typehash
=
{
non_plated
:
"nplate"
,
plated
:
"plate"
,
via
:
"via"
,
laser
:
"via"
}
Object
.
keys
(
tool_info
).
forEach
(
function
(
key
){
var
item
=
tool_info
[
key
]
if
(
item
.
shape
==
"hole"
)
{
GEN
.
COM
(
"tools_tab_add,num="
+
key
+
",shape="
+
item
.
shape
+
",type="
+
typehash
[
item
.
type
]
+
",min_tol="
+
item
.
min_tol
+
",max_tol="
+
item
.
max_tol
+
",bit=,finish_size="
+
item
.
finish_size
+
",drill_size="
+
item
.
drill_size
+
",combined=yes,orig_size=0"
)
}
else
if
(
item
.
shape
==
"slot"
)
{
GEN
.
COM
(
"tools_tab_add,num="
+
key
+
",shape=slot,type="
+
typehash
[
item
.
type
]
+
",min_tol="
+
item
.
min_tol
+
",max_tol="
+
item
.
max_tol
+
",finish_size="
+
item
.
finish_size
+
",bit=,drill_size="
+
item
.
drill_size
+
",slot_len="
+
item
.
slot_len
)
}
})
GEN
.
COM
(
"tools_set,layer="
+
layer
+
",slots=by_length"
)
}
\ No newline at end of file
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