微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > PCB设计问答 > Genesis学习交流 > 急需GENESIS加尾孔脚本!

急需GENESIS加尾孔脚本!

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

   我不会写脚本,手工加尾孔很麻烦,动不动就有20几把刀,都晕倒,那位高手能给俺一个加尾孔的脚本啊!谢谢

                  邮箱:GXHONG007@163.COM

                 QQ:675598907

我也想要啊.

有自带的,自已改一下就OK了

来我的QQ空间看看吧,可以找到你所需要的东东.

怎么该啊?能说说吗?

普通的加尾孔的有很多,但是要加槽刀的就比较少了.

到我空间里看下QQ:79645302

#########################################################################add drill

                       COM affected_layer,mode=all,affected=no  
                       COM clear_layers
                       COM affected_layer,name=drl,mode=single,affected=yes


set t=-1
set addyks = `echo "scale=10;$gSR_LIMITSymin" | bc`
foreach  i  (`echo $gTOOLdrill_size`)
     @ t ++
     set addx = `echo "scale=10;$gSR_LIMITSxmax + 0.196850" | bc`
     set addy = `echo "scale=10;$addyks + $i/1000 + 0.078" | bc`
     set addyks = $addy
     COM add_pad,attributes=no,x=$addx,y=$addy,symbol=r$i,\
     polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
end
set wky = `echo "scale=10;$gSR_LIMITSymax + 0.11811" | bc`
set syp1x = `echo "scale=10;$gSR_LIMITSxmax + 0.236220" | bc`
set syp1y = `echo "scale=10;$gSR_LIMITSymax + 0.236220" | bc`
set syp2x = `echo "scale=10;$gSR_LIMITSxmax + 0.236220" | bc`
set syp2y = `echo "scale=10;$gSR_LIMITSymax + 0.000000" | bc`
set syp3x = `echo "scale=10;$gSR_LIMITSxmax + 0.236220" | bc`
set syp3y = `echo "scale=10;$gSR_LIMITSymin - 0.236220" | bc`
set syp4x = `echo "scale=10;$gSR_LIMITSxmin - 0.236220" | bc`
set syp4y = `echo "scale=10;$gSR_LIMITSymin - 0.236220" | bc`
set syp5x = `echo "scale=10;$gSR_LIMITSxmin - 0.236220" | bc`
set syp5y = `echo "scale=10;$gSR_LIMITSymax + 0.236220" | bc`
COM add_text,attributes=no,type=canned_text,x=$gSR_LIMITSxmin,y=$wky,\
text=$job,x_size=0.227,y_size=0.265,w_factor=2.624671936,polarity=positive,\
angle=0,mirror=no,fontname=canned_67,bar_type=UPC39,bar_char_set=full_ascii,\
bar_checksum=no,bar_background=no,bar_add_string=no,bar_add_string_pos=top,\
bar_width=0.008,bar_height=0.175,ver=1
COM add_pad,attributes=no,x=$syp1x,y=$syp1y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
COM add_pad,attributes=no,x=$syp2x,y=$syp2y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
COM add_pad,attributes=no,x=$syp3x,y=$syp3y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
COM add_pad,attributes=no,x=$syp4x,y=$syp4y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
COM add_pad,attributes=no,x=$syp5x,y=$syp5y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
switch ($st)
case 1:
breaksw
case 2:
set pxgk1x = `echo "scale=10;$gSR_LIMITSxmin/2 + $gSR_LIMITSxmax/2" | bc`
set pxgk1y = `echo "scale=10;$gSR_LIMITSymax + 0.23622" | bc`
set pxgk2x = `echo "scale=10;$gSR_LIMITSxmin - 0.23622" | bc`
set pxgk2y = `echo "scale=10;$gSR_LIMITSymin/2 + $gSR_LIMITSymax/2" | bc`
COM add_pad,attributes=no,x=$pxgk1x,y=$pxgk1y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
COM add_pad,attributes=no,x=$pxgk2x,y=$pxgk2y,symbol=r125,\
polarity=positive,angle=0,mirror=no,nx=1,ny=1,dx=0,dy=0,xscale=1,yscale=1
breaksw
endsw

######能看懂的话,自己随便改改就好了!是我贴子里面的小片段,

可以自己在菜单里面加,也蛮快的,一分钟搞定。本人经常用!

上一篇:设置背景颜色
下一篇:运行genesis出错

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

网站地图

Top