>>> brd=pcbnew
>>> for StrAttr in dir(brd):
... if StrAttr.startswith('PCB'):
... print(StrAttr)
...
PCB_IO
PCB_IO_swigregister
PCB_PLOT_PARAMS
PCB_PLOT_PARAMS_GetGerberDefaultPrecision
PCB_PLOT_PARAMS_PARSER
PCB_PLOT_PARAMS_PARSER_swigregister
PCB_PLOT_PARAMS_swigregister
Additionally, pcb enumeration method pcb.GetDrawings() returns None in this object case.
Open attachment and paste in python console (same commands without leading spaces, prompt '>>>' or '... '):
>>> brd=pcbnew
>>> pcb=brd.GetBoard()
>>> draws=list(pcb.GetDrawings())
>>> for n in range(len(draws)):
... print("Draw[%i]:%s" % (n, draws[n]))
...
Draw[0]:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at 0x7f9d8da2a1e0> >
Draw[1]:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at 0x7f9d8da2a270> >
Draw[2]:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at 0x7f9d8da2a1b0> >
Draw[3]:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at 0x7f9d8da2a2a0> >
Draw[4]:None
>>>
Application: pcbnew
Version: (2014-jul-16 BZR unknown)-BZR5173 Release build
wxWidgets: Version 3.0.0 (release,wchar_t,compiler with C++ ABI 1002,GCC 4.8.3,wx containers,compatible with 2.8)
Platform: Linux 3.16.3-1 x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.55.0
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
USE_FP_LIB_TABLE=HARD_CODED_ON
BUILD_GITHUB_PLUGIN=OFF
Required source C++ class is from pcbnew/class_mire.cpp
47:PCB_TARGET::PCB_TARGET( BOARD_ITEM* aParent ) :
I don't know why, but initial message drops attachment.