Hi,
I’m trying to draw shapes with the Python shell but it’s not showing up on my board. I have tried the following instructions:
circle = pcbnew.DRAWSEGMENT()
circle.SetShape(pcbnew.S_CIRCLE)
circle.SetCenter(pcbnew.wxPoint(0,0))
circle.SetArcStart(pcbnew.wxPoint(10,10))
circle.SetLayer(pcbnew.Edge_Cuts)
circle.SetWidth(10)
pcb.Add(circle)
Refresh()
I’m just experimenting. My goal is to write a script that draws the edges of the PCB automatically, with round edges and maybe even mounting holes, by detecting where the components are.
Many thanks!