• 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. Grid Settings

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 165
  • Views 14722
  • 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

Grid Settings

Jerry Wilson
Jerry Wilson over 16 years ago

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

  • grids.GIF
  • View
  • Hide
  • Cancel
  • EvanShultz
    EvanShultz over 15 years ago

     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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eDave
    eDave over 15 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Jerry Wilson
    Jerry Wilson over 15 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Jerry Wilson
    Jerry Wilson over 15 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eDave
    eDave over 15 years ago

    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

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