EAGLE Save Grid Size Setting

EAGLE Save Grid Size Setting

ThePieMonster
Advocate Advocate
13,354 Views
19 Replies
Message 1 of 20

EAGLE Save Grid Size Setting

ThePieMonster
Advocate
Advocate

Hello,

 

Does anyone know of a way to keep the grid size settings after closing out EAGLE. Everytime I open a new part I have to go and reset my grid size settings. 

 

 

Thanks

Reply
Reply
Accepted solutions (1)
13,355 Views
19 Replies
Replies (19)
Message 2 of 20

rachaelATWH4
Mentor
Mentor

@ThePieMonster wrote:

Hello,

 

Does anyone know of a way to keep the grid size settings after closing out EAGLE. Everytime I open a new part I have to go and reset my grid size settings. 

 

 

Thanks


You can add the grid settings to your eagle.scr file and they'll be applied every time you open a drawing.

 

Best Regards,


Rachael

Reply
Reply
Message 3 of 20

ThePieMonster
Advocate
Advocate

I opened up eagle.scr in the scr folder in the EAGLE directory and changed Grid Default; to Grid 0.05mm; but it shows as 0.05 in instead of 0.05 mm.

 

Is that the right way of doing that?

 

 

 

Reply
Reply
0 Likes
Message 4 of 20

rachaelATWH4
Mentor
Mentor
Accepted solution

@ThePieMonster wrote:

I opened up eagle.scr in the scr folder in the EAGLE directory and changed Grid Default; to Grid 0.05mm; but it shows as 0.05 in instead of 0.05 mm.

 

Is that the right way of doing that?


You need to set the grid in two stages;

 

GRID mm; GRID 0.05;

 

Best Regards,

 

Rachael

 

 

Reply
Reply
Message 5 of 20

jorge_garcia
Autodesk
Autodesk

You can do it in a one liner also

 

GRID mm 0.05;

 

Best Regards,



Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Reply
Reply
Message 6 of 20

C.Nicks
Advisor
Advisor

Hi Pie Monster,

You can set the grids for each editor that will load every time the editors are opened using the above mentioned methods.

 

You can also save grid presets (alias) for each window. Setup the grid how you want from the grid dialog and press ok. Then right click on the grid icon to see the alias menu. If you select "New..." you can save the current grid settings. Then anytime you can can activate a grid preset from the right click menu, typing into the command line (grid alias), or from assigned shortcuts. The help section for grid is under Editor Commands -> GRID.

 

You can also toggle back to the previous setting with "GRID Last", which you can select from the right-click menu, or what I do and set it to a shortcut. That way I can toggle back and forth between 4 grids (2 primary, 2 alternate). I've never used any other package that allows for that kind of flexibility in grid settings.

 

I have Display last mapped to F1, and then Grid last mapped to ALT+F1 for very quick and easy display and grid toggling. I can post a quick video showing an example if my explanation here isn't very clear.

 

 

Grid Alias.png

Best Regards,

Cameron

 

Best Regards,
Cameron


Eagle Library Resources


Kudos are much appreciated if the information I have shared is helpful to you and/or others.
Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Reply
Reply
Message 7 of 20

Anonymous
Not applicable

setting grid or default units or anything does not work in Library editor. Very annoying.

Reply
Reply
0 Likes
Message 8 of 20

edwin.robledo
Alumni
Alumni

Hi ADresden,

Consider using the ASSIGN command, to assign preferred grid settings in the library editor.

Regards,

Ed

 

 



Edwin Robledo
Tech Marketing Manager
Reply
Reply
0 Likes
Message 9 of 20

C.Nicks
Advisor
Advisor

Where are you attempting to save them?

 

This is what's in my eagle.scr and it loads correctly every time.

 

#--------- LIBRARY EDITOR ---------#

LBR:

PAC:
	GRID ON;
	Grid MM 1;
	Grid ALT MM 0.5;

Best Regards,
Cameron


Eagle Library Resources


Kudos are much appreciated if the information I have shared is helpful to you and/or others.
Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Reply
Reply
Message 10 of 20

Anonymous
Not applicable

I set the settings directly in the library editor. Why do I need to be "special" and use some text editor to edit some obscure text file when I'm using a very powerful graphical UI already? Or at least a button of "set default" would be nice.

 

I'm also fighting with the concept of design rules, I can't make the library editor make to accept them. It simply gives me either very wide solder mask openings, or deletes them altogether. Where is the option of "0 extension on solder mask" as the standard? The only option is huge or mask off.

 

This is 8.2.1 still, as I can't upgrade both computers to 8.2.2

Reply
Reply
Message 11 of 20

Anonymous
Not applicable

Hi There...

 

Same question how to save default grid sizes? I have my .scr script from an older version but it doesn't work any more?

 

Problem Eagle 9.1.3 -> the eagle.scr file has now moved and the one in  ⁨EAGLE-9.1.3⁩ ▸ ⁨examples⁩ ▸ ⁨scripts⁩ ▸ ⁨examples⁩ doesn't seem to apply the defaults?

 

Could any one assist with this new problem?

Reply
Reply
0 Likes
Message 12 of 20

jorge_garcia
Autodesk
Autodesk
Hi @Anonymous,

I hope you're doing well. Copy your eagle.scr file to the new location in Documents > EAGLE > scripts put them in there.

Please let me know if there's anything else I can do for you.

Best Regards,


Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Reply
Reply
0 Likes
Message 13 of 20

EagleCC
Explorer
Explorer

Hi Cameron,

This is great but every time I close the schematic or board or footprint then the created alias is erased

Any way to keep those stored?

Having the grid set on My script file is not working for some reason... I just have a general one:

 

 

Assign F8 'GRID INCH 0.0025 1 LINES ON';

Assign F9 'GRID INCH 0.0025 4 LINES ON';

Assign F10 'GRID INCH 0.0025 40 LINES ON';

 

I also tried to add LIB: and SCH: and all others but it doesn't work either

 

If I run the above lines in the cmd then it woks but this mean I have to execute this every time I open a new window

Your help is appreciated

Thanks

-CC

Reply
Reply
0 Likes
Message 14 of 20

C.Nicks
Advisor
Advisor
What version are you using that is showing this behavior?
I'm using version 9.6.2 and the presets are still working for me.

Have you added the presets to the eagle.scr file?

Since my original post I now keep a separate PRESETS.scr file that is linked from the eagle.scr file. If any of them get corrupted (Display presets get messed up sometimes) I can manually run that script and they are all restored.

Also, are you opening the SCH/BRD files themseleves or using project (epf) files?

Best Regards,
Cameron


Eagle Library Resources


Kudos are much appreciated if the information I have shared is helpful to you and/or others.
Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Reply
Reply
0 Likes
Message 15 of 20

EagleCC
Explorer
Explorer

Thank you for the reply Cameron,

Before I sent this message I though to try rebooting my PC as last resource which apparently did some trick and now all is working as expected....  here is the original message

 

I'm using 9.6.2

Yes, I added all of the presets on the eagle.scr file and I've confirmed that it's the correct file under the directory

I'm opening single files and it also does it when I open a "new" schematic or Board or library or footprint

The commands work OK because I can enter it on the cmd window and so I either hit F7 or type Grid G1 and the program places a 0.001 in grid. but it doesn't work unless I enter everything on the cmd window

 

This is my eagle.scr file:

 

GRID INCH 0.001 1 LINES ON;

 

Assign F7 'GRID INCH 0.001 1 LINES ON';

Assign F8 'GRID INCH 0.0025 1 LINES ON';

Assign F9 'GRID INCH 0.0025 4 LINES ON';

Assign F10 'GRID INCH 0.0025 40 LINES ON';

Assign F11 'SET COLOR_GRID BLUE';

Assign F12 'SET COLOR_GRID WHITE';

 

GRID = G1 INCH 0.001 LINES ON;

GRID = G25 INCH 0.0025 1 LINES ON;

GRID = G10 INCH 0.0025 4 LINES ON;

GRID = G100 INCH 0.0025 40 LINES ON;

Reply
Reply
0 Likes
Message 16 of 20

C.Nicks
Advisor
Advisor

Ok, are your GRID lines under a section in the eagle.scr file?

You will need to place them under the section you want them applied to. So if those are for the board editor they need to be under the BRD: section


Here's a snippet of mine

 

BRD:
#---------- GRID ALIAS PRESETS ------------

	# mm presets
	GRID = mmFINE mm 0.1 1 Dots On mm alt mm 0.05 mm;
	GRID = mmMED mm 0.5 1 Dots On mm alt mm 0.25 mm;
	GRID = mmCOARSE mm 1 1 Dots On mm alt mm 0.5 mm;
	
	# inch presets
	GRID = inFINE inch 0.01 1 Dots On inch alt inch 0.005 inch;
	GRID = inMED inch 0.1 1 Dots On inch alt inch 0.025 inch;
	GRID = inCOARSE inch 1.0 1 Dots On inch alt inch 0.5 inch;

SCH:
	GRID = sch_default 0.1 1 Dots On inch alt inch 0.025 inch;

PAC:
#---------- GRID ALIAS PRESETS ------------
	# mm presets
	GRID = mmFINE mm 0.1 1 Dots On mm alt mm 0.05 mm;
	GRID = mmMED mm 0.5 1 Dots On mm alt mm 0.25 mm;
	GRID = mmCOARSE mm 1 1 Dots On mm alt mm 0.5 mm;
	
	# inch presets
	GRID = inFINE inch 0.01 1 Dots On inch alt inch 0.005 inch;
	GRID = inMED inch 0.1 1 Dots On inch alt inch 0.025 inch;
	GRID = inCOARSE inch 1.0 1 Dots On inch alt inch 0.5 inch;

Best Regards,
Cameron


Eagle Library Resources


Kudos are much appreciated if the information I have shared is helpful to you and/or others.
Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Reply
Reply
0 Likes
Message 17 of 20

mtl_asm
Collaborator
Collaborator

there seems to be some problem with eagle.scr in 9.6.2. i poked around a bit more in reference to 2 other recent posts revolving around settings not working from peoples eagle.scr and there are issues in 9.6.2 that aren't in 9.4.2 for sure. i haven't tested 9.5 as i dont have it installed. 

 

i will ty to make a  screencast next week to show. it seems 9.6.2 caches an eagle.scr somewhere or something like that, and ignores changes depending on how you open the project.  i didan experiment wherei removed all my eagle.scr in 9.6.2 and somehow my project still opened with all my custom "menu" commands i add in eagle.scr in board/sch views. making anew project with no eagle.scr anywhere simply showed the default though, so it does check in some situations. 

 

 

Reply
Reply
0 Likes
Message 18 of 20

C.Nicks
Advisor
Advisor
Yeah there has always been a few odd behaviors regarding when the eagle.scr actually gets run or not.
I always open boards from enabling projects, so it keeps what is in the cache. If you create a new file it will run the file.
The script file primarily makes changes in the eaglerc.usr file. That is where all of the settings are kept, although there is still another internal cache mechanism that keeps unsaved changes and sometimes glitches out.

Best Regards,
Cameron


Eagle Library Resources


Kudos are much appreciated if the information I have shared is helpful to you and/or others.
Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Reply
Reply
Message 19 of 20

EagleCC
Explorer
Explorer

Cameron,

I had them in both, the general part as well as the individual one for All sections eg:

 

GRID INCH 0.0025 4 LINES ON;

LBR:

GRID INCH 0.0025 4 LINES ON;

BRD:

GRID INCH 0.0025 4 LINES ON;

SCH:

GRID INCH 0.0025 4 LINES ON;

PAC:

GRID INCH 0.0025 4 LINES ON;

 

It was not working OK and after the reboot its been working fine

I think the reboot must've clear the cache and loaded the updated script file properly based on the recent posts

 

Thanks again!

-Carlos

Reply
Reply
0 Likes
Message 20 of 20

mtl_asm
Collaborator
Collaborator

Ah interesting. For some reason i had the impression it was supposed to run each time an editor window was opened buti don't know where i got that from. Thank you for the additional insight.

Reply
Reply
0 Likes