Home > Community > Forums > PCB Design > 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: *

 Grid Settings 

Last post Thu, May 20 2010 1:12 PM by eDave. 7 replies.
Started by Jerry Wilson 22 Jul 2009 04:14 AM. Topic has 7 replies and 2181 views
Page 1 of 1 (8 items)
Sort Posts:
  • Wed, Jul 22 2009 4:14 AM

    Grid Settings Reply

    Hi Everyone

    I'm going  work on a skill code to read the grid settings of a design.

     I have attached the snap shot. Please advice on how to get the grids value.

    Regards

    Jerry


    Filed under:
    • Post Points: 20
  • Wed, May 19 2010 11:38 AM

    Re: Grid Settings Reply

     Hi Jerry,

     I'd like to know how to do this too. Did you ever find a way?

    You might want to post this question to the PCB SKILL forum instead of the PCB Design forum, as it's a SKILL question.

    • Post Points: 35
  • Wed, May 19 2010 2:55 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 707
    • Points 15,395
    Re: Grid Settings Reply

    You can try using the undocumented 16.3 command axlDBGridGet. It will give you grid information for etch subclasses.

    e.g. axlDBGridGet("TOP") => (nil name "TOP" objType "grids" readOnly nil xOrigin 0.0 yOrigin 0.0 xMajor 1.0 yMajor 1.0 xGrids (1.0) yGrids (1.0))

    If you still need it, I have some code that will get all the grid form information but it's a real kludge.

    Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Wed, May 19 2010 6:23 PM

    Re: Grid Settings Reply

    Hi Dave

    Yes please. Can you send the code over.What i have done is instead of checking, i have permenantly set the grids in my code to be 0.001

    axlShell("define grid")

    axlShell("setwindow form.grid")

    axlShell("FORM grid non_etch non_etch_x_grids 0.001")

    axlShell("FORM grid non_etch non_etch_y_grids 0.001")

    axlShell("FORM grid all_etch all_etch_x_grids 0.001")

    axlShell("FORM grid all_etch all_etch_y_grids 0.001")

    axlShell("FORM grid done")

     

     

    Thanks\

    Jerry.

    • Post Points: 5
  • Wed, May 19 2010 6:31 PM

    Re: Grid Settings Reply

    Hi Evan

    I was unable to check the grids. What i have done is set the grid permanently to 0.001.

    axlShell("define grid")

    axlShell("setwindow form.grid")

    axlShell("FORM grid non_etch non_etch_x_grids 0.001")

    axlShell("FORM grid non_etch non_etch_y_grids 0.001")

    axlShell("FORM grid all_etch all_etch_x_grids 0.001")

    axlShell("FORM grid all_etch all_etch_y_grids 0.001")

    axlShell("FORM grid done")

    Regards

    Jerry

    • Post Points: 20
  • Wed, May 19 2010 6:47 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 707
    • Points 15,395
    Re: Grid Settings Reply

    Hi Jerry,

    See attached. I hope you can figure out how to use it without help.

    This is a usage example: 

    layers = AFn_getGridSettings()\

    layers["TOP"] ->spacingx

    Regards,

    Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, May 20 2010 12:56 PM

    Re: Grid Settings Reply

     Hi Dave,

    This function works perfectly. Thanks!

    BTW, how does one learn about undocumented functions? Or private Cadence functions beginning with "_", that I've seen you mentioned before. Have I missed the documentation for the undocumented functions? :)

    • Post Points: 20
  • Thu, May 20 2010 1:12 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 707
    • Points 15,395
    Re: Grid Settings Reply

    Hi Evan,

    Generally undocumented commands are risky to use - they may (and often do) disappear between releases. If you do find one that you regard as being necessary you should raise an enhancement request to get it made "public".

    Of course, because they are undocumented, you will have to guess the command syntax. Easy for some commands but not others. However, using the command: arglist usually helps.

    The trick for finding them is to search the symbols used in the lisp symbol list: oblist.

    I'll post some code over in the Skill forum.

    Dave

    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by Jerry Wilson at 22 Jul 2009 04:14 AM. Topic has 7 replies.