Automation - Get a report of xPCB Layout design's traces length

Version 1

    'Warning! This is an unsupported script and should be used with caution.

     

     

     

    'Trace lenght report log having the following kind of info

    'Net: TEST_NET_NAME
    '   Segments: 7   Vias: 4
    '   Segment Length: 469,854881889764 Segment Layer: 6
    '       Vias: 2  6  26  6  2  
    '   Segment Length: 35,3553149606299 Segment Layer: 1
    '   Segment Length: 282,416850393701 Segment Layer: 1
    '       Vias: 2  6  26  6  2  
    '   Segment Length: 1328,87716535433 Segment Layer: 6
    '       Vias: 2  
    '   Segment Length: 1295,74007874016 Segment Layer: 5
    '       Vias: 2  6  26  6  
    '   Segment Length: 376,101535433071 Segment Layer: 1
    '       Vias: 2  6  26  6  2  
    '   Segment Length: 680 Segment Layer: 6
    '   Trace length (no vias): 4 468,346 Trace length (incl vias): 4 636,346 Vias length: 168,000



    'Warning! This is an unsupported script and should be used with caution.


    '==========================================================================
    ' DISCLAIMER OF WARRANTY:  Unless otherwise agreed in writing,
    ' Mentor Graphics software and associated files are provided "as is"
    ' and without warranty.  Mentor Graphics has no obligation to support
    ' or otherwise maintain software.  Mentor Graphics makes no warranties,
    ' express or implied with respect to software including any warranty
    ' of merchantability or fitness for a particular purpose.
    '
    ' LIMITATION OF LIABILITY: Mentor Graphics is not liable for any property
    ' damage, personal injury, loss of profits, interruption of business, or for
    ' any other special, consequential or incidental damages, however caused,
    ' whether for breach of warranty, contract, tort (including negligence),
    ' strict liability or otherwise. In no event shall Mentor Graphics'
    ' liability exceed the amount paid for the product giving rise to the claim.
    '==========================================================================