Home > Community > Forums > PCB Design > show grid settings

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 show grid settings 

Last post Mon, Mar 10 2014 9:46 AM by docb. 8 replies.
Started by docb 07 Feb 2014 11:33 AM. Topic has 8 replies and 2698 views
Page 1 of 1 (9 items)
Sort Posts:
  • Fri, Feb 7 2014 11:33 AM

    • docb
    • Top 500 Contributor
    • Joined on Mon, Jan 6 2014
    • Posts 22
    • Points 440
    show grid settings Reply

    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?

    • Post Points: 20
  • Sat, Feb 8 2014 8:57 PM

    • ScottCad
    • Top 50 Contributor
    • Joined on Sat, May 26 2012
    • Roswell, GA
    • Posts 193
    • Points 3,185
    Re: show grid settings Reply

     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.. 

     

    • Post Points: 20
  • Fri, Mar 7 2014 8:40 AM

    • docb
    • Top 500 Contributor
    • Joined on Mon, Jan 6 2014
    • Posts 22
    • Points 440
    Re: show grid settings Reply

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

    Any ideas?

    • Post Points: 35
  • Fri, Mar 7 2014 9:22 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    Re: show grid settings Reply

     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

    • Post Points: 20
  • Fri, Mar 7 2014 9:25 AM

    • docb
    • Top 500 Contributor
    • Joined on Mon, Jan 6 2014
    • Posts 22
    • Points 440
    Re: show grid settings Reply

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

    • Post Points: 20
  • Fri, Mar 7 2014 9:59 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    Re: show grid settings Reply

     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

    • Post Points: 5
  • Fri, Mar 7 2014 10:01 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    Re: show grid settings Reply

     Sorry, only one attachment at a time allowed apparently.  Here is the second one.

     Chad

    • Post Points: 5
  • Sat, Mar 8 2014 10:29 AM

    • ScottCad
    • Top 50 Contributor
    • Joined on Sat, May 26 2012
    • Roswell, GA
    • Posts 193
    • Points 3,185
    Re: show grid settings Reply

    Strange result.

    There are two parts to make this work. Add this to your env file. It will use the lower case g key to cycle through various
    grid sizes. 

    funckey g 'settoggle gridvalue 100 50 25 12.5 5; replay set-grid $gridvalue;echo grid = $gridvalue'

    ------------------------------------------------------------------------------------------------------------------------------------------- 

    The second part is a script. It needs to be placed in the directory where cadence can read scripts from.

    Save it as set-grid.scr

    Verify that your "Scriptpath" folder under user preferences >Paths>Config is where you have saved set-grid.scr
    otherwise it wont work 

     ------------------------------------------------------------------------------------------------------------------------------------------

    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

    It works for me in 16.6

    Thanks Scott 

     

    • Post Points: 20
  • Mon, Mar 10 2014 9:46 AM

    • docb
    • Top 500 Contributor
    • Joined on Mon, Jan 6 2014
    • Posts 22
    • Points 440
    Re: show grid settings Reply

     Got it. I was missing crcuial carriage returns. Thanks.

    (I still wish there was a way to see the grid setting without changing)

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by docb at 07 Feb 2014 11:33 AM. Topic has 8 replies.