Skip to content

Fatal Error when restoring layout Kicad 9.0.1 #21

@AsanX

Description

@AsanX

04-10 00:40:24 com_github_MitjaNemec_SaveRestoreLayout.action_save_restore_layout 347:Fatal error when restoring layout
Traceback (most recent call last):
File "C:\Users\x\OneDrive - x\Documents\KiCad\9.0\3rdparty\plugins\com_github_MitjaNemec_SaveRestoreLayout\action_save_restore_layout.py", line 336, in Run
restore_layout.restore_layout(layout_file)
File "C:\Users\x\OneDrive - x\Documents\KiCad\9.0\3rdparty\plugins\com_github_MitjaNemec_SaveRestoreLayout\save_restore_layout.py", line 912, in restore_layout
self.replicate_footprints(src_anchor_fp, saved_fps, self.dst_anchor_fp, footprints_to_place, self.layout_group)
File "C:\Users\x\OneDrive - x\Documents\KiCad\9.0\3rdparty\plugins\com_github_MitjaNemec_SaveRestoreLayout\save_restore_layout.py", line 1123, in replicate_footprints
dst_fp_rel_pos = dst_anchor_fp_position + pcbnew.VECTOR2I(dst_fp_rel_pos_rot[0],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\x\AppData\Local\Programs\KiCad\9.0\bin\Lib\site-packages\pcbnew.py", line 4803, in init
_pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: in method 'new_VECTOR2I', argument 1 of type 'int'
Additional information:
Wrong number or type of arguments for overloaded function 'new_VECTOR2I'.
Possible C/C++ prototypes are:
VECTOR2< int >::VECTOR2()
VECTOR2< int >::VECTOR2(int,int)
VECTOR2< int >::VECTOR2(VECTOR2< int > const &)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions