微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > PCB设计问答 > CAM350学习交流 > CAM350钻带加外围测针孔的宏

CAM350钻带加外围测针孔的宏

时间:10-02 整理:3721RD 点击:

哪位大侠能发个<CAM350钻带加外围测针孔的宏>来分享一下.

谢谢!

SIGNATURE----------------------------------------------------------
 诚邀物流公司加盟合作!

不知道哪个大哥制作的加尾孔程序,再次感谢:

'WRITTEN: Dmin ---2004.05.25
' $Workfile: 自动加尾孔程序 $
' $Revision: 2.0 $
' $Modtime: 25 May 2004 09:40:58 $
' $Date: 25 May 2003 09:43:54 $
' $Owner: Dmin $
setunit@ 0
util_nced@
setlayer@ drilllayer!
holespace = 4
OpenForm #1,45,5, "Auto Add Last Drill Hits V2.0", character, okcancel
AddForm #1, 0, 0, "欢迎使用自动加尾孔程序!",Print
AddForm #1, 5, 1, "版本V2.0 Dmin 2004.5.25。",Print
AddForm #1, 0, 2, "'版权所有哦,翻录必究哦!' ",Print
AddForm #1, 0, 3, "请输入尾孔间距(mm):", Input, holespace

DisplayForm #1
Canceled% = formCancel(1)
DeleteForm #1
if Canceled% then goto 110
Getmousepos@ "Select Starting Point (Right Button Exits)"
B = 0
100
For A = 1 to highestuseddrillnum!
set_drill_tool@ A
nc_add_drill_hit@
axy@ mouseposX!, mouseposY!-B
C = drillsize!
set_drill_tool@ A+1
D = drillsize!
B =B + C/2+D/2 + holespace*40
next
back@
110
util_camed@
setunit@ 1
end


因为我们公司要求不一样,所以我自己修改了下,

原来是孔边距离孔边的,现在改为孔中心距离中心了,

并取消麻烦的菜单选择:

setunit@ 1
util_nced@
setlayer@ drilllayer!
holespace = 4

Getmousepos@ "Select Starting Point (Right Button Exits)"
B = 0
100

For A = 1 to highestuseddrillnum!
set_drill_tool@ A
nc_add_drill_hit@
axy@ mouseposX!, mouseposY!-B
C = drillsize!
set_drill_tool@ A+1
D = drillsize!
B =B+5
next
back@

util_camed@
setunit@ 1
end

上一篇:钻带导入不完全
下一篇:焊盘表面处理

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top