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.
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.
In reply to EvanShultz:
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.
In reply to eDave:
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("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")
I was unable to check the grids. What i have done is set the grid permanently to 0.001.
In reply to Jerry Wilson:
See attached. I hope you can figure out how to use it without help.
This is a usage example:
layers = AFn_getGridSettings()\
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? :)
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.