I am struggling with the documentation for the pcbnew python scripting console. I am trying to draw an edge cut arc.
I can’t find any examples, the closest I have found is in the interface code, something like this:
**** I worked out the problem and have added the offending line
arc = pcbnew.DRAWSEGMENT(board )
arc.SetShape(pcbnew.S_ARC)
arc.SetCenter(pcbnew.wxPoint(pcbnew.FromMM(centre[0]),pcbnew.FromMM(centre[1])))
arc.SetArcStart(pcbnew.wxPoint(
pcbnew.FromMM(centre[0]+math.sqrt(outerRad**2-(fingerWidth/2)**2)),
pcbnew.FromMM(centre[1]+fingerWidth/2)))
arc.SetAngle(totalAngle)
arc.SetLayer(edgecut)
board.Add(arc)
Am I approaching this all wrong? Are there any examples I have missed?
thanks
Dave