• 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. Check the pad to line of the "PACKAGE GEOMETRY/SILKSCREEN_TOP...

Stats

  • State Suggested Answer
  • Replies 3
  • Answers 1
  • Subscribers 159
  • Views 1125
  • Members are here 0
More Content

Check the pad to line of the "PACKAGE GEOMETRY/SILKSCREEN_TOP" gap.

ivy372
ivy372 over 1 year ago

Hi,

I want check all pads of the golden finger symbols to all other synbols layer of "PACKAGE GEOMETRY/SILKSCREEN_TOP" gap on the pcb board.

When the pad to the line is error then print a error report.

How can I fix the skill code?

skill as below : 

PCB_dbid = axlDBGetDesign()

SYM = PCB_dbid~>symbols ;all symbols

SYM_GF = setof( x SYM  rexMatchp("GF" x~>name))      ;find golden finger symbols

SYM_GF_pins = flatten(SYM_GF~>pins)

SYM_other = setof( x SYM !member(x~>name  SYM_GF~>name))     ;find other symbols

SYM_other_pkggeoskt = setof( x2 flatten(SYM_other~>children~>segments) rexMatchp("PACKAGE GEOMETRY/SILKSCREEN_TOP" x2~>layer))

foreach(GP SYM_GF_pins
foreach(pkggeoskt SYM_other_pkggeoskt
air_gap = axlAirGap(GP pkggeoskt nil 'enhanced)
if(air_gap<1.5 then fprintf(Error_LOG "FAILED: The error is %L))))

  • Sign in to reply
  • Cancel
Parents
  • eDave
    0 eDave over 1 year ago

    One change required is:

    air_gap = axlAirGap(GP pkggeoskt nil 'enhanced) ->airGap

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ivy372
    0 ivy372 over 1 year ago in reply to eDave

    Hi Dave,

    Thanks your reply.

    But I still get error as below:

    Skill > foreach(GP SYM_GF_pins
    more> foreach(pkggeoskt SYM_other_pkggeoskt
    more> airGap = axlAirGap(GP pkggeoskt nil 'enhanced)
    more> if(airGap<1.5 then fprintf(Error_LOG "FAILED: The error is %L))))
    E-
    E- foreach(GP SYM_GF_pins foreach(pkggeoskt SYM_other_pkggeoskt airGap = axlAirGap(GP pkggeoskt nil 'enhanced)if(airGap<1.5 then fprintf(Error_LOG "FAILED: The error is %L))))
    E- ^^
    E- SYNTAX ERROR found at line 1 column 108 of file *string*
    E- *Error* lineread/read: syntax error encountered in input
    nil

    How can I fix it?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave over 1 year ago in reply to ivy372

    Add 

    ->airGap 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • eDave
    0 eDave over 1 year ago in reply to ivy372

    Add 

    ->airGap 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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