• 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 to other Cline segment Airgap

Stats

  • Replies 6
  • Subscribers 160
  • Views 16124
  • Members are here 0
More Content

Cline to other Cline segment Airgap

vimaldevlpr
vimaldevlpr over 5 years ago

Hi,

I need one help can any one please help me out from this.

The selected Cline alone has to check the air gap of every cline segment present in the board in that the input value will get by run time. if the airgap value is lesser than input value the cline segment want to be highlight. I'll tried but I shows error can anyone please re correct it.

E- *Error* greaterp: can't handle (4 > nil)

procedure(checkcseg()
axlClearSelSet()
axlSetFindFilter(?enabled `("NOALL" "CLINES") ?onButtons `("CLINES"))
clineschk = axlGetSelSet(axlSelect(?prompt "Select Clines by pick or window."))
if(clineschk then
axlClearSelSet()
axlSetFindFilter(?enabled `("NOALL" "CLINESEGS") ?onButtons `("CLINESEGS"))
clinesegchk = axlGetSelSet(axlAddSelectAll())
val = atoi(axlUIPrompt("Enter the Max Airgap value :"))
if(clinesegchk then
foreach(cln_db clineschk
foreach(csg clinesegchk
_AirGap = lastelem(axlAirGap(cln_db csg csg->layer) )
if(val > _AirGap  then
axlHighlightObject(csg)
print(csg ->xy)
printf("found")
)
)
)
)
)

  • Sign in to reply
  • Cancel
Parents
  • Kirti Sikri
    Kirti Sikri over 5 years ago

    Hello,

    It is because the code doesn't handle _AirGap to be nil.

    Once you handle that before val > _AirGap error should go away.

    Thanks,

    Kirti

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Kirti Sikri
    Kirti Sikri over 5 years ago

    Hello,

    It is because the code doesn't handle _AirGap to be nil.

    Once you handle that before val > _AirGap error should go away.

    Thanks,

    Kirti

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • vimaldevlpr
    vimaldevlpr over 5 years ago in reply to Kirti Sikri

    Hai Kirti,

    That's the thing I don't know how to handle it. can you please give me a solution for this.

    • 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