I don't recall there being a standard report called 'Parts List', just the 'Parts List 1' and Parts List 2'. The report data you showed is coming from the report that is normally named 'Statistics'. Depending on the sort of data you want output you should be able to have better luck with the VB Script reports found in Tools > Basic Scripts > Basic Scripts. The '17 - Excel Part List Report' would be a good one to look at. Some variations of this output and steps on creating your own report can be found in the following technote: https://supportnet.mentor.com/portal?do=reference.technote&id=MG21428
From my v9.5 install:
outFile = OpenReport (DefaultFilePath & "\Part List.rep")
Print #outFile, "Parts List Report -- ";
Print #outFile, .Name; " -- ";
Print #outFile, GetTime
Print #outFile, "Total components = "; .Components.Count; " component(s)"
Out "Reference Designation PartType Logic Type"
Columns 10, 27, 60
For Each nextComp In .Components
Out nextComp, nextComp.PartType, nextComp.PartTypeLogic
Ahh, good point, though the RGL sample files are different than the reports that one would find in File > Reports. The reports for those are using .fmt files located in C:\MentorGraphics\<version>PADS\SDD_HOME\Settings.
The difference between the Part Lis.bas and Part List 1.bas is the 'Print #outFile' line in the Part List.bas file which creates an extra space between lines of data in the report.
Hello, to All,
'Chuckt', and 'MENTOR_BillT', I had looked into all of the things suggested before I posted, i.e., the Sample .bas files, the Excel file script, .... I knew that what was being shown as a 'Parts List' report was indeed a 'Statistics' report, as PADS had correctly generated my statistics report (I still don't know why the returned results for the 'Parts List' report was so corrupted, i.e., not a parts list at all, and again, not even the correct filename for the current project). Part of the reason I was asking about the variations in content was that I was wondering if any of the LAYOUT parts lists generated *parts values*.
Maybe I'm supposed to generate a new query at this point, but do either of you - or, anybody else - know how to get/find the members of the 'Part.' structure ? As I mentioned, I had looked at this before, but because I don't know what is in the structure, or, where to find information on the contents of various structures, I can't even modify the, i.e., VB/Excel script. Is there a document which lists the various structure contents ?
Thanks for all the suggestions so far.
1 of 1 people found this helpful
Your path may be different.
1 of 1 people found this helpful
The location of the documentation for the Basic script commands varies a bit depending on the version you are using. For example, in PADS 9.5, go to Help > Documentation > PADS Layout User's Guide and Reference Manual > open PDF. Search for Automation and look at the section with "Component.". For PADS VX.1.1 go to Help > Open Documentation > PADS Layout Command Reference Manual > Open PDF. Search for the section with "Component.".
The Part List reports can be customized to include the property values you want by following the section on creating a custom part placement report in technote MG21428 using the PADS Layout Script Wizard.
Thanks for your help with my 'Parts List' problem. I'm not sure why Mentor only lets one answer be accepted as 'Correct', and I had already accepted another answer. Maybe they can/will change their policy.
I did want to thank you and your answer was just as correct.
Thanks for your assistance and indeed I was able to find what I needed in the 'Automation' section. Both you and 'Chuckt', were of tremendous help.