Creating round (arc) copper planes [SOLVED]

[quote=“suckiden, post:5, topic:1229”]
PPS: If anybody is willing to program this script/program I would be very thankful and I guess some of the community members as well…[/quote]

Here you go, pretty crude but did work for me already.
Runs on Python 2.7.2 and goes into a xyz.kicad_pcb via text-editor (I have KiCAD BZR5978).

KiCAD_CopperArc.py on Github Gist

The script pproduces the segments for an arc with the following specs (can be adjusted in the script):

  • Center = x 105.0 mm / y 105.0 mm
  • Radius = 20 mm
  • Sides = 36
  • StartAngle = 45.0 degrees
  • Angle = 135.0 degrees
  • TrackWidth = 0.4 mm
  • Layer = F_Cu
  • Net = 0

KiCAD has got some mind of it’s own in regards to nets of stuff you add to a kicad_pcb file that’s not originally from KiCAD (been there, had lot’s of fun) - it needs some fiddling and determination until it works (I suggest to get a proper file with nets from eeschema and adding to that) and the new copper is accepted and stays on the net you gave it, but once you got it - it’s working :wink:

PS: totally forgot, I naturally used that script for something else and pulled it out of something bigger… looking around you’ll notice it is able do a bit more than just drawing lines to form an arc if correctly adjusted. I’ve already used it for pretty complex outlines/millings/comments/coppertraces/etc… that were based on calculations.

1 Like