• 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 Scripting - Skill
  3. Trouble With Layer Name Pair

Stats

  • State Verified Answer
  • Replies 3
  • Subscribers 18
  • Views 950
  • Members are here 0
More Content

Trouble With Layer Name Pair

MarkGorecki
MarkGorecki 1 month ago

Hello,

I'm using Cadence Allegro 24.1 and I'm trying to check if the layer "Package_Top" is visible and if not, make it visible.

Neither of these commands work:

if(not(axlIsVisibleLayer("STACK-UP/PACKAGE_TOP")) then

if(not(axlIsVisibleLayer("NON-CONDUCTOR/PACKAGE_TOP")) then

I get this:  

*WARNING* Layer does not exist: STACK-UP/PACKAGE_TOP

*WARNING* Layer does not exist: NON-CONDUCTOR/PACKAGE_TOP

If I use just "PACKAGE_TOP", then I get: *WARNING* Layer does not exist: PACKAGE_TOP

Does anyone know the layer pair, or just the layer name that I would use?

Thanks,

Mark

  • Cancel
  • Sign in to reply
Parents
  • MarkGorecki
    +1 MarkGorecki 1 month ago

    Ok, got this figured out.  I did a "Show Element" and picked one of the bowties.  It showed the class as "DRC ERROR CLASS" and the subclass as "PACKAGE_TOP".  I used those names in the code, and it worked.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 1 month ago in reply to MarkGorecki

    Years ago, Cadunce changed the naming convention between Allegro and APD ( IMHO that was stupid )

    They finally provided the skill function axlMapClassName() that allows skill code to work with both tools...

    Below is an example that should work in both Allegro and APD:

    (axlVisibleLayer strcat(axlMapClassName("PACKAGE") "KEEPOUT/TOP") t)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • DavidJHutchins
    0 DavidJHutchins 1 month ago in reply to MarkGorecki

    Years ago, Cadunce changed the naming convention between Allegro and APD ( IMHO that was stupid )

    They finally provided the skill function axlMapClassName() that allows skill code to work with both tools...

    Below is an example that should work in both Allegro and APD:

    (axlVisibleLayer strcat(axlMapClassName("PACKAGE") "KEEPOUT/TOP") t)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • MarkGorecki
    0 MarkGorecki 1 month ago in reply to DavidJHutchins

    Hi David, thanks for the info.  I have made a note of that.

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