13 Replies Latest reply on Feb 11, 2011 12:47 PM by bleslie

    Plane processor report

    Snap_Boy

      Hi,

       

      Is it possible to interact with 'Planes parameters & Processor' with help of automation?

      Plane Processor.JPG

       

      I am trying to generate report which gives details about each plane shape (Attached report).

      In report 'comment' have screen shot for more clarity......

       

      Thanks in advance....

        • 1. Re: Plane processor report
          Satoru

          Hi Snap_Boy,

           

          Are you using EXP2005.X?

          EXP2005.X can't get Planes parameters information by Automation.

          However, it can be got from EE2007.1.

           

          Regards,

          Satoru

           

          [Sample Code]

              Dim lay As Long
              Dim plAsgns As MGCPCB.PlaneAssignments
              Dim plAsgn As MGCPCB.PlaneAssignment
              Dim plCls As MGCPCB.PlaneClass
              Dim tmp As String

           

              For lay = 1 To pcbDoc.LayerCount
                  Set plAsgns = pcbDoc.PlaneAssignments(lay)
                  For Each plAsgn In plAsgns
                      Set plCls = plAsgn.PlaneClass
                     
                      'Get Net Name
                      tmp = tmp & lay & "," & plAsgn.Net & ","
                     
                      'Get Default Via TieLeg Type
                      Select Case plCls.DefaultViaTieLegType
                          Case 0
                              tmp = tmp & "None" & ","
                          Case 1
                              tmp = tmp & "Tow" & ","
                          Case 2
                              tmp = tmp & "Four" & ","
                          Case 3
                              tmp = tmp & "Eight" & ","
                          Case 4
                              tmp = tmp & "Buried" & ","
                      End Select
                     
                      'Get Default ThroughHole TieLeg Type
                      Select Case plCls.DefaultThroughHoleTieLegType
                          Case 0
                              tmp = tmp & "None" & ","
                          Case 1
                              tmp = tmp & "Tow" & ","
                          Case 2
                              tmp = tmp & "Four" & ","
                          Case 3
                              tmp = tmp & "Eight" & ","
                          Case 4
                              tmp = tmp & "Buried" & ","
                      End Select

           

                      'Get Default SMD TieLeg Type
                      Select Case plCls.DefaultSMDTieLegType
                          Case 0
                              tmp = tmp & "None" & "," & vbCrLf
                          Case 1
                              tmp = tmp & "Tow" & "," & vbCrLf
                          Case 2
                              tmp = tmp & "Four" & "," & vbCrLf
                          Case 3
                              tmp = tmp & "Eight" & "," & vbCrLf
                          Case 4
                              tmp = tmp & "Buried" & "," & vbCrLf
                      End Select
                  Next
              Next
              MsgBox tmp

          • 2. Re: Plane processor report
            matthias.cosaert

            I don't think you can [edit] in 2005.x.

             

            But you can parse the logfile (Logfiles/PlanesProcessor.txt) which should have all the settings.

             

             

            POSITIVE PLANE LAYER : 2

             

                    Plane Shapes Found On This Layer : 1
                    Plane Holes  Found On This Layer : 4

             


                    PLANE NET : GND

             

                        Total Plane Shapes For This Net   : 1
                        Use Route Border As Plane Shape   : NO
                        Create Actual Plane Shapes        : NO
                        Regenerate APS Connections Only   : NO
                        Generate Plane Data               : YES
                        Plane To Plane Clearance          : 200um
                        Plane To Other Metal Clearance    : 127um
                        Mounting Hole / Contour Clearance : 350um
                        Minimum Plane Gap Distance        : NA
                        Use TieLeg Bridges If Needed      : NO
                        Use Padstack Thermal Definition   : YES
                        Default Via Tie Properties
                            Number Tie Legs               : BURIED
                        Default Thru Tie Properties
                            Tie Leg Width                 : 300um
                            Thermal Clearance             : 150um
                            Number Tie Legs               : FOUR
                            Tie Orientation               : PREFER 0
                        Default SMD Tie Properties
                            Tie Leg Width                 : 132um
                            Thermal Clearance             : 150um
                            Number Tie Legs               : FOUR
                            Tie Orientation               : PREFER 0
                        Eliminate Untied Areas            : YES
                        Eliminate Single Tied Areas       : YES
                        Orthogonal Data Only              : NO
                        Discard Areas By Dimension        : YES (5,000um X 5,000um)
                        Default Hatch Width               : 127um
                        Default Hatch Distance            : 125um
                        Default Hatch Pattern             : (|) Vertical
                        Default Metal Percentage          : 100.00

             

                        Total Via  Pads Of This Net       : 757
                        Total Thru Pads Of This Net       : 168
                        Total SMD  Pads Of This Net       : 0

             

                        Plane Created : Layer 2 - Net GND

             

                            Via Pads In This Plane           : 719
                            Thru Pads In This Plane          : 166
                            SMD Pads In This Plane           : 0
                               
                             Pads To Be Buried In Plane       : 719
                                Unconnected To Plane         : 0
                                    Connected To Trace       : 0
                            Pads With 4/4 Tie Connections    : 165
                            Pads With 3/4 Tie Connections    : 1

             

                                Pads With 3 Tie Legs : 1
                                    Coordinates (um) :
                                            1) X=42,864.73   Y=5,350         Pin: J1-25

            • 3. Re: Plane processor report
              Snap_Boy

              Guys,

               

              Thanks for your replies.

              I think I have to wait till 2007 comes to us........

              • 4. Re: Plane processor report
                bleslie

                Here is a program that will get you a text report of the plane settings.  Just put this file on your desktop and then drag and drop your .pcb file onto it.  You only do this so it can get the path to the design.  It parses the file, creates a csv file, then opens it automatically in excel.  This will work on expedition 2005.

                 

                Hope this helps!

                 

                You will have to change the file extension from .txt to .vbs

                • 5. Re: Plane processor report
                  Snap_Boy

                  Hi,

                   

                  Will this work in '2005 service pack 1' ?

                  I am getting following error.

                  Error.JPG

                  • 6. Re: Plane processor report
                    bleslie

                    Hi,

                     

                    The program uses Windows Script Host in order to get the path of the design.  I use WinXP sp2 and this is installed with the service pack.  Well it is under a servicepackfiles directory.  The file name is wscript.exe.  This may have been installed with activestate perl.

                    • 7. Re: Plane processor report
                      bleslie

                      Hi Snap_boy,

                       

                      I guess i did not specifically answer your question.  Yes this script will work on wg2005 sp1.  The error looks like you do not have windows script host installed.  Did you get this working?

                      Attached is an example output file of a simple board.

                      • 8. Re: Plane processor report
                        Snap_Boy

                        Bleslie,

                         

                        I have Windows SP3, wscript.exe in my system.

                        Still I am getting that error!

                        I have checked in other systems too.

                         

                         



                        • 9. Re: Plane processor report
                          bleslie

                          Snap_boy,

                           

                          I tried this on other computers that have windows XP sp3 and it works.  I wish I could help!  I just have the file saved to my desktop and from a windows explorer window i drag the *.pcb file from my design and drop it on the icon.

                          • 10. Re: Plane processor report
                            Snap_Boy

                            It works now.

                             

                            Thank you Bleslie !!

                            • 11. Re: Plane processor report
                              bleslie

                              Snap_Boy,

                               

                              I'm glad that you have it working now!  Would you mind posting how you enabled script host in windows in case anyone else has the same problem?

                               

                              Thank you for letting me know what the problem was!

                              Bleslie

                              • 12. Re: Plane processor report
                                Snap_Boy

                                I apologize for delay in response!

                                 

                                Difficult to say...........

                                 

                                But mostly change in registry has made this possible!

                                reg.JPG

                                 

                                In addition to that I remapped all network drives.

                                 

                                Thank you very much for support !

                                http://www.staffs.ac.uk/feo/images/clap_hands.jpg

                                • 13. Re: Plane processor report
                                  bleslie

                                  Snap_boy,

                                   

                                  I've updated this script for use with EE2007.7.   Mentor created plane classes in 2007, but it seems like they are still updating the config/PlanesProcDlg.dat file.  This gives you simular report as last time, but with a few more columns.  This is not an ideal script for use with 2007.  An ideal script would give you a list of plane class setting and then list the planes and which class is assigned to it.

                                   

                                  Same thing as before change the .txt to .vbs.

                                   

                                  Best Regards!