• 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. ON/OFF Drill Layer

Stats

  • Replies 3
  • Subscribers 161
  • Views 2567
  • Members are here 0
More Content

ON/OFF Drill Layer

JuriV
JuriV over 4 years ago

Hello everybody,

is it any way to ON/OFF the Drill layers?

E.g. like funckey 1 'settoggle lay lay_top lay_top_nil; $lay'

1 is TOP

2 is BOTTOM

....

5 is DRILL Layer (Vias only)

Is the command like  'settoggle lay  Drill Drill_nil; $lay' available?

Best regards

  • Sign in to reply
  • Cancel
Parents
  • excellon1
    excellon1 over 4 years ago

    Hi JuriV.

    I find using the "Color View Save" under the View menu somewhat better than assigning macros to keys, maybe faster too. You also could use a macro to call the particular color file too if you wanted.

    Here is a pic to explain.

    So to do this just turn on the layers you need. For my drill I also include the silkscreen so it is easy to identify where the drill holes are on the board.

    Steps.

    Enable the layers you need. For the drill it will be. Board Outline & NCLEGEND-1-2.
    If all looks good go to View Menu and use Color View Save.
    Enter a name, for this I use simply drill.color.
    I typically save these color files to the Root Cadence folder.

    In the Visibility pane you can see the color files show up. All you have to do is select it and your saved views will show up. In the pic you can see I have a few
    views so with one mouse click I can enable the view I need.

    Here is one more pic showing the top solder mask to give you an idea of how flexible it can be.

    All the best.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JuriV
    JuriV over 4 years ago in reply to excellon1

    Hi Excellon1,

    thank you very much for the reply. I know this, its a very good method and I use it. But for the very rash toggle of the layers it is better for my to use the keys. So, I have found a skill script for that.
    I can togglle al layers by keys, this is very usefull.

    Color View is very interesting feature. I am using the Color Views for the Documentation: eg. TOP+DRILL or SST+SMT and so on. For example for the SST or SSB I changed the background to white.

    Unfortunately, I am not sure how is possible to change the colors in "Color192" depends of Color Views, e.g.Board Outline in one view is yellow, in the next is blue, in the next white and so on.

    Thanks again

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • excellon1
    excellon1 over 4 years ago in reply to JuriV

    Hi Juni.

    Using the color view files it is possible to cycle through different layers using just one key.

    I may have mis understood what you are trying to do :)

    It also possible to change colors in the color192 and cycle through those as well. For example use one key to cycle through and change the background color.

    Here is an example to cycle the background colors. Extract the attached zip file to your cadence root folder. C:\cadence. the file is bg.scr

    3730.bg.zip

    Next add this macro to your .env file

    ##### "''Macro to setup Background color
    funckey b 'settoggle bgvalue 33554400 33554311 33554432 50331647 50318231 50309375 42173315 ; replay bg $bgvalue;echo bg =  $bgvalue'
    ######

    Note I am using the key "b" you might want to check that you are not using that key first. and change funckey b to something else.

    Start Allegro.

    Hitting the funckey you assigned or in my case the funckey b changes the background color. Keep hitting it eventually it will cycle back to a black background.

    In the Macro the numbers 33554400 33554311 etc correspond to the background color. To figure out what the actual colors are can be done by recording a script first while you manually change the
    color192 background color. You can read the script values by opening the script in a text editor.

    In the recorded script you should see something like

    setwindow cvf.dialog
    cvf layer_tree_item 'Display'
    cvf select_color_cell 81
    cvf bkgrnd_clr 50331647     <<<<<<<<<<<<<

    The number 50331647 is the background color.

    In the zip file that has the .scr. The line cvf bkgrnd_clr 50331647 gets replaced with cvf bkgrnd_clr $bgvalue

    $bgvalue in the macro will be used as the new background value.

    Hope all this makes some sense Slight smile

    All the best.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • excellon1
    excellon1 over 4 years ago in reply to JuriV

    Hi Juni.

    Using the color view files it is possible to cycle through different layers using just one key.

    I may have mis understood what you are trying to do :)

    It also possible to change colors in the color192 and cycle through those as well. For example use one key to cycle through and change the background color.

    Here is an example to cycle the background colors. Extract the attached zip file to your cadence root folder. C:\cadence. the file is bg.scr

    3730.bg.zip

    Next add this macro to your .env file

    ##### "''Macro to setup Background color
    funckey b 'settoggle bgvalue 33554400 33554311 33554432 50331647 50318231 50309375 42173315 ; replay bg $bgvalue;echo bg =  $bgvalue'
    ######

    Note I am using the key "b" you might want to check that you are not using that key first. and change funckey b to something else.

    Start Allegro.

    Hitting the funckey you assigned or in my case the funckey b changes the background color. Keep hitting it eventually it will cycle back to a black background.

    In the Macro the numbers 33554400 33554311 etc correspond to the background color. To figure out what the actual colors are can be done by recording a script first while you manually change the
    color192 background color. You can read the script values by opening the script in a text editor.

    In the recorded script you should see something like

    setwindow cvf.dialog
    cvf layer_tree_item 'Display'
    cvf select_color_cell 81
    cvf bkgrnd_clr 50331647     <<<<<<<<<<<<<

    The number 50331647 is the background color.

    In the zip file that has the .scr. The line cvf bkgrnd_clr 50331647 gets replaced with cvf bkgrnd_clr $bgvalue

    $bgvalue in the macro will be used as the new background value.

    Hope all this makes some sense Slight smile

    All the best.

    • 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