Community
EAGLE Forum
Welcome to Autodesk’s EAGLE Forums. Share your knowledge, ask questions, and explore popular EAGLE topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ULP get grid size

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
663 Views, 3 Replies

ULP get grid size

Hello!

I want to write ULP for changing grid, divide or multiply from current setting. But I don`t know: how to get current value?

 

And where I can get an up-to-date ULP programming reference? Las I found is from 7.2.0 version.

3 REPLIES 3
Message 2 of 4
jorge_garcia
in reply to: Anonymous

Hello @Anonymous,

I hope you're doing well. The last ULP reference that had a PDF available was 7.2.0 so we don't have anything new there. The latest ULP reference is in the EAGLE help function, so you will always find the latest there.

Search for GRID and then look at the User language section. Here's a brief example from the help:

board(B) {
printf("Gridsize=%f\n", B.grid.distance);
}

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.
Message 3 of 4
C.Nicks
in reply to: Anonymous

There's a few old ulps out there that you can check out and see how they do it.
Here are a couple I found a while back.
https://github.com/loneFunction/Library/tree/master/ULP/GLOBAL/GRID

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.

Message 4 of 4
Anonymous
in reply to: C.Nicks

Thank you! That`s what I wanted to write)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report