• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Cline Net Path Length Report

Stats

  • Replies 2
  • Subscribers 159
  • Views 10826
  • Members are here 0
More Content

Cline Net Path Length Report

vimaldevlpr
vimaldevlpr over 3 years ago

Hi,

I want to get cline reports using cadence skill but I don't know the command to get "NET PATH LENGTH" value any one please guide me to get the value I will attach my code below.

Code:

axlCmdRegister("net_len_kar_wid" 'net_len_kar_wid)
procedure(net_len_kar_wid()
originalVisible=axlVisibleGet()
axlVisibleDesign(t)
axlShell("redisplay")
axlClearSelSet()
axlSetFindFilter(?enabled '("NOALL", "CLINES"), ?onButtons "CLINES")
net_list = axlGetSelSet(axlAddSelectAll())
Net_rep = nil
foreach(net_data net_list
 Net_len = axlDBGetLength(net_data)
 Net_Path_len = ? ;I don't know the command to get
 Net_val = sprintf(nil, "%s,%s,%L,%L", net_data->net->name, net_data->layer, Net_len, ?)
 list_seg = nil
 foreach(net_data_seg net_data->segments
  Seg_width = net_data_seg->width
  when(Seg_width push(Seg_width list_seg))
 )
 list_seg_unq = nil
 list_seg_unq = unique(list_seg)
 Final_val = sprintf(nil, "%s,%L", Net_val, list_seg_unq)
 when(Final_val push(Final_val Net_rep))
)
print(Net_rep)
)
  • Sign in to reply
  • Cancel
  • DavidJHutchins
    DavidJHutchins over 3 years ago

    I think you only get the 'net path length' when the net is not completely connected,

    so per the comment in the documentation for axlDBGetLength: 

         If a net is partially routed includes sum of all ratsnest manhatten lengths.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 3 years ago in reply to DavidJHutchins

    Thanks a lot  David..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information