-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error when placing footprints #15
Comments
So I have been experimenting with this problem and found if I change the units to mm from mil (which is what I was working in), no error occurs. Guess with my board being pretty big and in mil it caused an overflow somehow? |
Do you have any plans of making this plugin (and replicate layout) like AutoCAD's array feature in the future? It would be nice if you could make a parent cell with multiple parts that controls all other (child) cells and locks & mimics the child cells down to reflect what is in the parent cell (even if parent is edited later). Could also have a way to manually change one child cell if you needed something custom in one for whatever reason. I work a lot of phased arrays PCBs so this would be really useful for that application. |
I have the same issue
|
Thanks to both for reporting this. I am a bit short on time lately, so please have patience. @maciekish do you work in mils(inches) or in millimeters? If you work in mils, does it help if you switch to millimeters? @maciekish, @StayWavy1 can anybody share a project or prepare a test project so that I can recreate the issue locally? |
Seems like the issue is mils indeed. If i switch to mm it works. |
Thanks for the feedback, if you can share the project I'd appreciate it as I'd like to fix the issue even if there is a workaround |
Getting this error when I run plugin with sheet nr.
I have a unit cell with some parts that I am trying to replicate in a 4x4 array/matrix.
Log file output:
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 405:Plugin executed on: 'win32'
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 406:Plugin executed with python version: '3.9.16 (main, Apr 9 2023, 05:22:13) [MSC v.1934 64 bit (AMD64)]'
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 407:KiCad build version: 7.0.2
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 408:Plugin version: 2.0.3
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 409:Frame repr: <wx._core.Frame object at 0x00000232A44D6940>
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.place_footprints 121:getting a list of all footprints on board
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.place_footprints 140:Footprint S1 does not have Sheetfile property, it will not be considered for placement. Most likely it is only in layout
04-20 21:45:13 com_github_MitjaNemec_PlaceFootprints.place_footprints 140:Footprint REF** does not have Sheetfile property, it will not be considered for placement. Most likely it is only in layout
04-20 21:45:20 com_github_MitjaNemec_PlaceFootprints.place_footprints 244:constructing a list of sheets suitable for replication on level:'VQ33 Unit Cell', file:'C:\Users\jdean\Documents\X\Unit Cell.kicad_sch'
04-20 21:45:20 com_github_MitjaNemec_PlaceFootprints.place_footprints 279:suitable sheets are:[['HPOL', 'HPOL Quad 1', 'HQ11 Unit Cell'], ['HPOL', 'HPOL Quad 1', 'HQ12 Unit Cell'], ['HPOL', 'HPOL Quad 1', 'HQ13 Unit Cell'], ['HPOL', 'HPOL Quad 1', 'HQ14 Unit Cell'], ['HPOL', 'HPOL Quad 2', 'HQ21 Unit Cell'], ['HPOL', 'HPOL Quad 2', 'HQ22 Unit Cell'], ['HPOL', 'HPOL Quad 2', 'HQ23 Unit Cell'], ['HPOL', 'HPOL Quad 2', 'HQ24 Unit Cell'], ['HPOL', 'HPOL Quad 3', 'HQ31 Unit Cell'], ['HPOL', 'HPOL Quad 3', 'HQ32 Unit Cell'], ['HPOL', 'HPOL Quad 3', 'HQ33 Unit Cell'], ['HPOL', 'HPOL Quad 3', 'HQ34 Unit Cell'], ['HPOL', 'HPOL Quad 4', 'HQ41 Unit Cell'], ['HPOL', 'HPOL Quad 4', 'HQ42 Unit Cell'], ['HPOL', 'HPOL Quad 4', 'HQ43 Unit Cell'], ['HPOL', 'HPOL Quad 4', 'HQ44 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ11 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ12 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ13 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ14 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ21 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ22 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ23 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ24 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ31 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ32 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ34 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ41 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ42 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ43 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ44 Unit Cell']]
04-20 21:45:45 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 476:Sheets selected: [['VPOL', 'VPOL Quad 1', 'VQ11 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ12 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ13 Unit Cell'], ['VPOL', 'VPOL Quad 1', 'VQ14 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ21 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ22 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ23 Unit Cell'], ['VPOL', 'VPOL Quad 2', 'VQ24 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ31 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ32 Unit Cell'], ['VPOL', 'VPOL Quad 3', 'VQ34 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ41 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ42 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ43 Unit Cell'], ['VPOL', 'VPOL Quad 4', 'VQ44 Unit Cell']]
04-20 21:45:45 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 485:Footprints to place: ['C126', 'C33', 'C55', 'C77', 'C99', 'C66', 'C22', 'C44', 'C88', 'C142', 'C153', 'C115', 'C180', 'C191', 'C169', 'C207']
04-20 21:45:45 com_github_MitjaNemec_PlaceFootprints.place_footprints 398:Starting placing with matrix layout
04-20 21:45:45 com_github_MitjaNemec_PlaceFootprints.action_place_footprints 561:Fatal error when executing place footprints
Traceback (most recent call last):
File "C:\Users\jdean\Documents\KiCad\7.0\3rdparty\plugins\com_github_MitjaNemec_PlaceFootprints\action_place_footprints.py", line 557, in Run
placer.place_matrix(sorted_footprints, ref_fp_ref, step_x, step_y, nr_columns, step, rotation, True)
File "C:\Users\jdean\Documents\KiCad\7.0\3rdparty\plugins\com_github_MitjaNemec_PlaceFootprints\place_footprints.py", line 426, in place_matrix
fp.fp.SetPosition(pcbnew.VECTOR2I(*new_position))
File "C:\Program Files\KiCad\7.0\bin\Lib\site-packages\pcbnew.py", line 4826, in init
_pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
OverflowError: in method 'new_VECTOR2I', argument 1 of type 'int'
The text was updated successfully, but these errors were encountered: