- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
PROTEL DXP 一个很有意思的问题
录入:edatop.com 点击:
PROTEL DXP 一个很有意思的问题1. 先创建一个PCB1.PcbDoc空文档2. 在PROTEL DXP中装入所附的IND1.BAS;3. RUN4. 切换到PCB1.PcbDoc5. 在输入的坐标处(默认为3000mil,3000mil)可以看到正在绘制的螺旋线(可以放大看)6. 有意思的是你MOUSE动的快,它也画的快,窗口底部不停显示:HoleSizeWhy?注:我的PROTEL DXP 是V7.0.749试用版,操作系统WINXPind1.bas=================================================' Protel Client Basic code SpiralGeneratorProtelScript.bas June 19, 2001'' Creates spiral track pattern based on numerical parameters'' Written by Eric Albach and posted to the' Protel EDA Forum on June 2001 (see www.techservinc.com)'' Based on Qbasic code written by Brian Guralnick and posted to the' Protel EDA Forum June 2001'' InputBox lines added by Paul Hutchinson June 2001'' Removed the integers by Brian Guralnick, June 18, 2001'DIM x0,y0,stp,growth as DOUBLEDIM p,p0,pi,xc0,xc1,yc0,yc1 as DOUBLEpi = 3.141592654#'Added by P.H. 6/14/2001x0 = InputBox$("Enter spiral center x location", "Center X", "3000")y0 = InputBox$("Enter spiral center y location", "Center Y", "3000")spacing = InputBox$("Enter spiral spacing", "Spacing", "20")loops = InputBox$("Enter number of loops", "Number of loops", "4")res = InputBox$("Enter spiral resolution", "Resolution", "1")trackwidth = InputBox$("Enter spiral track width", "Track width", "10")loops = loops * 2stp = res / pi / 4growth = spacing / pi * stp / 2' ClientBasic uses only integers with For-Next loopsFOR p0 = 0 TO loops * pi / stp + 1 p = p0 * stp - stp xc1 = (COS(p) * spacing) yc1 = (SIN(p) * spacing) spacing = spacing + growth if p0<>0 then ResetParameters AddStringParameter "Width",trackwidth AddStringParameter "Location1.X", x0 + xc0 AddStringParameter "Location1.Y", y0 + yc0 AddStringParameter "Location2.X", x0 + xc1 AddStringParameter "Location2.Y", y0 + yc1' AddStringParameter "UserRouted", "False" AddStringParameter "Layer", "Current" RunProcess "PCBlaceTrack" end if xc0=xc1 yc0=yc1NEXT p0
很烂的DXP
you are a toper!
一点都看不懂
啥
不懂啊!
Cadence Allegro 培训套装,视频教学,直观易学
上一篇:我整体覆铜后,为啥有的地方不给我连?
下一篇:请问IN4002的封装是什么?