- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
PADS2007 PCB LAYOUT中Basic scripts(脚本)问题
录入:edatop.com 点击:
下面是PADS2007 PCB LAYOUT中产生POWERPCB V3.0网络表格式的一个Basic scripts(脚本)'PADS V3.0 Format Netlist'#Uses "RGL.bas"
Sub Main
With ActiveDocument
outFile = OpenReport (DefaultFilePath & "PADS V3.0 Format Netlist.rep")
Out
Out "!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0"
Out
Out "*PART* ITEMS"
Columns 0, 17
For Each nextComp In .Components
Out nextComp, nextComp.PartType
Next nextComp
End_Columns
Out "*NET*"
Out
For Each sig In .Nets
Out "*SIG* " & sigBetween 22
MaxCols 4
For Each nextPin In sig.Pins
Out nextPin
Next nextPin
End_Between
Next sig
Out
 rint #outFile, "*END* OF ASCII OUTPUT FILE"
CloseReport
End With
End Sub
假如PCB中有两个100PF的电容,运行上面的脚本得到下面的网表:!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0*PART* ITEMS
C1 CAP
C2 CAP
*NET**SIG* $$$1
C1.1 C2.1
*SIG* $$$2
C2.2 C1.2*END* OF ASCII OUTPUT FILE上面的网表中,元件参数一项没有元件值,我的问题是:怎样修改上面的脚本,使输出的网表格式中含有元件的值,如同下面的结果!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0*PART* ITEMS
C1 CAP,100PF
C2 CAP,100PF
*NET**SIG* $$$1
C1.1 C2.1
*SIG* $$$2
C2.2 C1.2*END* OF ASCII OUTPUT FILE请各位同行不吝赐教。
Sub Main
With ActiveDocument
outFile = OpenReport (DefaultFilePath & "PADS V3.0 Format Netlist.rep")
Out
Out "!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0"
Out
Out "*PART* ITEMS"
Columns 0, 17
For Each nextComp In .Components
Out nextComp, nextComp.PartType
Next nextComp
End_Columns
Out "*NET*"
Out
For Each sig In .Nets
Out "*SIG* " & sigBetween 22
MaxCols 4
For Each nextPin In sig.Pins
Out nextPin
Next nextPin
End_Between
Next sig
Out
 rint #outFile, "*END* OF ASCII OUTPUT FILE"
CloseReport
End With
End Sub
假如PCB中有两个100PF的电容,运行上面的脚本得到下面的网表:!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0*PART* ITEMS
C1 CAP
C2 CAP
*NET**SIG* $$$1
C1.1 C2.1
*SIG* $$$2
C2.2 C1.2*END* OF ASCII OUTPUT FILE上面的网表中,元件参数一项没有元件值,我的问题是:怎样修改上面的脚本,使输出的网表格式中含有元件的值,如同下面的结果!PADS-POWERPCB-V3.0-MILS! DESIGN DATABASE ASCII FILE 2.0*PART* ITEMS
C1 CAP,100PF
C2 CAP,100PF
*NET**SIG* $$$1
C1.1 C2.1
*SIG* $$$2
C2.2 C1.2*END* OF ASCII OUTPUT FILE请各位同行不吝赐教。
我在可以,只要把元件类型CAP另存为100P即可。即每种规格的元件(如1K,10K等)都要分别保存为不同的元件类型名(PART TYPES)
射频工程师养成培训教程套装,助您快速成为一名优秀射频工程师...
天线设计工程师培训课程套装,资深专家授课,让天线设计不再难...
上一篇:尺寸标注的怪事
下一篇:项目急用 求购INTEL主板设计方案
射频和天线工程师培训课程详情>>