559Views7Replies
EagleCAD Help
In Eagle, I'm trying to make a ring that is divided into 18 equal sections. However, I'm not sure how to do it. The only idea I can think of is manually creating each polygon, but there has to be an easier way. I've tried taking the ring and drawing lines through it in both the restrict & kepout layers, it doesn't work, though.
Comments
13 years ago
EAGLE has polar coordinates available from the command line, which is probably the easiest way to do something like this: grid mm; arc ccw 0.5 (p 25 0) (p 25 180) (p 25 19); arc ccw 0.5 (p 25 20) (p 25 200) (p 25 39); arc ccw 0.5 (p 25 40) (p 25 220) (p 25 59); (and etc. Or write a ULP.)
Reply 13 years ago
Thanks! I'll have to play around with it, though.
Reply 13 years ago
Don't mock the power of quick-coding! Ugly gets you really far sometimes! :P
If anyone is referencing this. Change the "print" line accordingly:
replace...
5 with the width of the segments
7 (all 3) with the radius
n+18 makes 2mm separations (20-2 = 18)
If you want more/less segments, adjust range(18) accordingly. However, you will need to replace 20 * x such that the 2 numbers multiplied by each other is 360.
Reply 13 years ago
BTW; that's brilliant. I've seen a lot of people over in the EAGLE forum that never seem to make that leap of intuition to get to "I can create EAGLE scripts using some other convenient programming! (or even a fancy text editor!)"
Reply 13 years ago
13 years ago
Reply 13 years ago
Ooh...Very vewy nice!