Comment 3 for bug 1393106

Revision history for this message
LordBlick (lordblick) wrote : Re: Python scripting Pad.Type (KICAD_T *) has not any method to determine pad type

What from list below is kind of pad type ? :
>>> import pcbnew as brd
>>> for strAttr in dir(brd):
... if strAttr.startswith('PAD_'):
... print("brd.%s" % strAttr)
...
brd.PAD_BK_NETNAMES_VISIBLE
brd.PAD_BK_VISIBLE
brd.PAD_CIRCLE
+brd.PAD_CONN
brd.PAD_DRAWINFO
brd.PAD_DRAWINFO_swigregister
brd.PAD_DRILL_CIRCLE
brd.PAD_DRILL_OBLONG
brd.PAD_FR_NETNAMES_VISIBLE
brd.PAD_FR_VISIBLE
+brd.PAD_HOLE_NOT_PLATED
brd.PAD_List
brd.PAD_List_swigregister
brd.PAD_OVAL
brd.PAD_RECT
brd.PAD_ROUND
+brd.PAD_SMD
+brd.PAD_STANDARD
brd.PAD_TRAPEZOID
The elements that I consider likely, pointed a plus.
If they will start with „PAD_TYPE_” and pad shapes with „PAD_SHAPE_” it would be nicer and cleaner.
Thank you for your atention.