• 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 Segment xy location

Stats

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

Cline Segment xy location

vimaldevlpr
vimaldevlpr over 5 years ago

Hi,

I am trying to get the cline segment report (Net name, cline segment xy location and line segment type). I tried but I don't know the commands to get the cline segment xy and line segment type. 

I'll  attach the code below any one please help me to complete this and I will attach the image to.

My code:

procedure(clinereportseg()
CSEG=list()
originalVisible=axlVisibleGet()
designName = axlCurrentDesign()
axlVisibleDesign(t)
axlShell("redisplay")
(axlSetFindFilter
?enabled list("noall" "clinesegs" "invisible")
?onButtons list("noall" "clinesegs")
)
CSEG=axlGetSelSet(axlAddSelectAll())
axlClearSelSet()
; Open a file to work on
if(length(CSEG)==0
then
axlUIConfirm("No Cline Seg in this design. Please try another design.")
else
print("yes")
writeOutFile = outfile("./csegreport.csv" "w")
foreach(cse CSEG
fprintf(writeOutFile, "%L,%L,%L\n", cse->net->name, cse->xy, cse->?)
)
fprintf(writeOutFile "END OF FILE")
close(writeOutFile)
axlVisibleSet(originalVisible)
axlShell("redisplay")
axlUIConfirm( "Report has been generated in your working directory." )
; This next line launches Excel and displays the report
axlHttp("csegreport.csv")
)
)

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    foreach(cse CSEG
    if(stringp(cse->net->name) then
    (netname=cse->net->name)
    else
    (netname="not on a net")
    )
    if(eqv(xCoord(car(cse->startEnd)) xCoord(cadr(cse->startEnd))) then
    (orient="Vertical")
    else
    if(eqv(yCoord(car(cse->startEnd)) yCoord(cadr(cse->startEnd))) then
    (orient="Horizonal")
    else
    (orient="Odd-Angle")
    )
    )
    fprintf(writeOutFile, "%s,%s,(%f %f),(%f %f)\n",netname,orient,xCoord(car(cse->startEnd)),yCoord(car(cse->startEnd)),xCoord(cadr(cse->startEnd)),yCoord(cadr(cse->startEnd)))
    )

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

    Thanks a lott david..

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

    Thanks a lott david..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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