Hi,
I’m working on a plugin to create slots in the pcb starting from graphic elements (lines, arcs, etc…)
Basically to create a closed shape on the “Edge.Cuts” layer around a single line on another layer.
I’m stuck on figuring out what kind of graphic elemnt I’m parsing, I can’t discriminate between line, arc or whatever…
I’ve already tried using several functions, including ".GetFriendlyName() " but this returns a localized string that I can’t use properly.
what function can I use to discriminate the type of graphic element?
example:
for segment in board.GetDrawings():
shapetype = segment.GetFriendlyName()
wx.MessageBox('Tipo = %s ' %(shapetype) )
edit:
btw I use Kicad Version: 7.0.2, release build