Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pads, Visual basic script (Need help)

Status
Not open for further replies.

Beepster

Advanced Member level 4
Joined
Jul 21, 2001
Messages
118
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,298
Location
unknown
Activity points
787
I have tried to add a line to this to inclued a parts value. Like ( 10uF ). The value being a Attribute.

Basic script, ( 17 - Excel Part List Report ) Here is the top part. It stops at " OutCell part.Attribute.value " or " OutCell part.value "
_________

' Sample 17: Excel Part List Report.BAS
'
'This is a completely revised version of the same file renamed to: old_X & Y Part Location Report.bas
'This script has been generated by PowerPCB's VB Script Wizard on 8/23/2007 3:19:25 PM
'It will create reports in Microsoft Excel Format.
'You can use the following code as a skeleton for your own VB scripts

'Array of column names. You can modify it to rename columns
Const Columns = Array("PartType", "RefDes", "PartDecal", "Pins", "Layer", "Orient.", "X", "Y", "SMD", "Glued")

Sub Main
tempFile = DefaultFilePath & "\temp.txt"
Open tempFile For Output As #1

'Output table header
For i = 0 to UBound(Columns)
OutCell Columns(i)
Next
Print #1
'Output table rows
For Each part in ActiveDocument.Components
OutCell part.PartType
OutCell part.Name
OutCell part.Decal
OutCell part.Attribute.value
__________________
https://obrazki.elektroda.pl/22_1333561395.jpg
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top