Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 4541

Re: Problem with Parts List Generation

$
0
0

From my v9.5 install:

'Parts List

'#Uses "RGL.bas"
Sub Main
With ActiveDocument
  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)"
  Print #outFile

  Out "Reference Designation      PartType                     Logic Type"
  Out "------------------------------------------------------------------"

  Columns 10, 27, 60
   For Each nextComp In .Components
    Out nextComp, nextComp.PartType, nextComp.PartTypeLogic
    Print #outFile
   Next nextComp
  End_Columns

  CloseReport
End With
End Sub


Viewing all articles
Browse latest Browse all 4541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>