Type object 'BOARD' has no attribute 'GetModules' on KiCad 6
Pizmuh opened this issue · comments
Pizmuh commented
I want to install plugin wich worked on KiCad 5 version. Now I am trying it on KiCad 6 version and it is showing this error.
Link to plugin code
Does anyone know to what was comand "GetModules" changed and how to implement it into this code?
Code where error shows up:
def move_modules(components, board, xsize, ysize):
for module in board.GetModules():
old_pos = module.GetPosition()
ref = module.GetReference()
if ref in components:
pos, sheet, idx = components[ref]
new_pos = pcbnew.wxPoint(pos[0] * POS_SCALE, (pos[1] + idx * ysize) * POS_SCALE)
module.SetPosition(new_pos)
Pizmuh commented
The GetModule was changed to "Footprints()"