diff --git a/CHANGELOG.md b/CHANGELOG.md index e85f1790..1244ceb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - OAR computation (Report) (#225) +- Position: Problems when doing manual panelization (repeated references) (#224) ## [1.2.0] - 2022-06-15 diff --git a/README.md b/README.md index 2a49a39e..ef4e9d5e 100644 --- a/README.md +++ b/README.md @@ -3752,6 +3752,8 @@ Additionally we support: - `Footprint Y-Size` - `Footprint Populate` +Important: These files doesn't support manual panelization with repeated reference names, you'll get the coordinates for just one component because this is a BoM. + ## Credits - **KiBot project**: Salvador E. Tropea (@set-soft) diff --git a/docs/README.in b/docs/README.in index 4934fa18..db7b573c 100644 --- a/docs/README.in +++ b/docs/README.in @@ -1718,6 +1718,8 @@ Additionally we support: - `Footprint Y-Size` - `Footprint Populate` +Important: These files doesn't support manual panelization with repeated reference names, you'll get the coordinates for just one component because this is a BoM. + ## Credits - **KiBot project**: Salvador E. Tropea (@set-soft) diff --git a/kibot/out_position.py b/kibot/out_position.py index 3de348e9..cd9150bf 100644 --- a/kibot/out_position.py +++ b/kibot/out_position.py @@ -255,8 +255,10 @@ class PositionOptions(VariantOptions): footprint = c.footprint is_bottom = c.bottom rotation = c.footprint_rot - center_x = c.footprint_x - center_y = c.footprint_y + # Here we can't use c.footprint_x/y because this doesn't work for panels + center = GS.get_center(m) + center_x = center.x + center_y = center.y if value is None: value = m.GetValue() footprint = str(m.GetFPID().GetLibItemName()) # pcbnew.UTF8 type