• 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. How to determine if any objects exist on subclass

Stats

  • Replies 2
  • Subscribers 160
  • Views 12660
  • Members are here 0
More Content

How to determine if any objects exist on subclass

Ejlersen
Ejlersen over 16 years ago

Hi,

Does anyone know how you can determine if any objects exist on subclass "Manufacturing/NCLEGEND-1-4" on a 4 layer PCB?

Does anyone know how to get the size of the drill legend before placing it? 

 

Best regards,

Ole

  • Sign in to reply
  • Cancel
  • kerchunk
    kerchunk over 16 years ago
    I dug up a snippet that looks close to what you need - give this a whirl --
    procedure( helpOle()
    let(( mfg_layer_list nclegend_list obj_list)

    oldview = axlVisibleGet() ;store what you see

    mfg_layer_list = axlGetParam("paramLayerGroup:MANUFACTURING")->groupMembers
    nclegend_list = setof( xx mfg_layer_list ( substring( xx 1 8) == "NCLEGEND"))
    foreach( layyer nclegend_list
        classname = strcat( "MANUFACTURING/" layyer)
        newview = axlVisibleSet( classname)
        axlSetFindFilter(?onButtons list("ALL") ?enabled list("ALL"))
        obj_list = cons( axlGetSelSet( axlAddSelectAll()) obj_list)
    );end-foreach
    axlVisibleSet( oldview) ;restore

    printf("found %n objects on the MFG/NCLEGEND subclasses\n", length( obj_list))

    );end-let
    );end-procedure

     

     

    HTH,

    Chris Walters

    local Cadence guru

    ()

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 16 years ago

    Hi Chris,

    Thanks a lot for this, I'll test it out.

    br,

    Ole

    • 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