• 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. PCB Design
  3. show grid settings

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 166
  • Views 20822
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

show grid settings

docb
docb over 11 years ago

Is there a way to see current grid settings on the screen, or do I need to go to "settings/define grid" just to see current?

  • Cancel
  • ScottCad
    ScottCad over 11 years ago

     Nope... Silly eh :)

    To make things a bit easier here are some macros you can use to toggle the grid size. If the command window is open at the bottom of the screen then the grid size will get reported.

    Add this macro to your env file it uses the g key to cycle through various grid sizes.

    ##### "''Macros to setup grids" Uses grid-set.scr to set values
    funckey g 'settoggle gridvalue 100 50 25 12.5 5; replay set-grid $gridvalue;echo grid = $gridvalue'

    The macro depends on a script "grid-set.scr" to work. This file contains the grid settings. Place the script in the directory you use for scripts.

    scriptmode +invisible
    setwindow pcb
    define grid
    setwindow form.grid
    FORM grid non_etch non_etch_x_grids $gridvalue
    FORM grid non_etch non_etch_y_grids $gridvalue
    FORM grid all_etch all_etch_x_grids $gridvalue
    FORM grid all_etch all_etch_y_grids $gridvalue
    FORM grid done

    Kudos to the original author of these macros... I find them a big help hope you will too :)

    Scott.. 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • docb
    docb over 11 years ago

     I tried this in 16.6, and the grid settings box open, then I get an  'illegal grid increment error'.

    Any ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • chads108
    chads108 over 11 years ago

     Can't answer the above question, but what I have done is create a bunch of scripts for my different grid settings and then created a custom menu for all my grids.  Anytime I want to change a grid, I just select my "Grids" menu and select the one I need.  Very easy and quick.

     Chad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • docb
    docb over 11 years ago

    I've created different grid scripts, but how do you make a menu?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • chads108
    chads108 over 11 years ago

     There are two methods I know of.  The first one is probably the easiest to understand.

    1. Copy the Cadence installed menu to a "site" location and modify with yourcustomizations. Add the "site" menu location to the menu path to use the customized menu.  I have attached an example (allegro.zip) of what I used to use.  The draw back of this is that when versions change, you may have to update your menus.

    2. Using a SKILL script you can actually add items to the Cadence installed menu as it is loading.  This is a bit more hairy, especially if you are not familiar with running SKILL scripts.  I have again attached an example of what I use (Dynamic_Menus.zip). This needs to be put with any other SKILL scripts you are running and a line added to the allegro.ilinit as explained in the file itself.

    Chad

    allegro.zip
    • Cancel
    • Vote Up 0 Vote Down
    • 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