yaqwsx / PcbDraw

Convert your KiCAD board into a nicely looking 2D drawing suitable for pinout diagrams
MIT License
1.13k stars 90 forks source link

No footprints #135

Open Andy79881 opened 1 year ago

Andy79881 commented 1 year ago

I've got the following messages: Component Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Horizontal has not footprint. Component LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder has not footprint. Component Connector_PinHeader_1.27mm:PinHeader_2x07_P1.27mm_Vertical has not footprint. Component Connector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_Vertical has not footprint. Component TestPoint:TestPoint_Keystone_5000-5004_Miniature has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder has not footprint. Component Crystal:Crystal_SMD_HC49-SD has not footprint. Component Package_QFP:LQFP-48_7x7mm_P0.5mm has not footprint. Component Button_Switch_SMD:SW_SPST_B3S-1000 has not footprint. Component Capacitor_SMD:CP_Elec_4x5.8 has not footprint. Component TestPoint:TestPoint_Keystone_5000-5004_Miniature has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolder.back has not footprint. Component Package_TO_SOT_SMD:SOT-23.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mm.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_Vertical.back has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder.back has not footprint. Component Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder.back has not footprint. Component Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_Vertical.back has not footprint. Component Package_TO_SOT_SMD:SOT-223-3_TabPin2.back has not footprint. Component Inductor_SMD:L_0805_2012Metric_Pad1.05x1.20mm_HandSolder.back has not footprint. Component Diode_SMD:D_SOD-123.back has not footprint.

According to the usage page: "...plotting them. The result is a simplified and stylized board image. However, you have to supply hand-drawn footprint images. It can also remap symbols, easily select board style and also, render resistor values color bands." If I'm looking to the examples there are footprints shown. How can I get the footprints plotted?

Andy79881 commented 1 year ago

I've got it somehow partly working with the remap.json file. But I have to enter each component there and it is error prone. Furthermore not all footprints will be displayed even if they are already used for another reference designator.

e.g. extract fom remap.json: "R6": "Resistor_SMD:R_0805_HandSoldering", "R7": "Resistor_SMD:R_0805_HandSoldering", "R2": "Resistor_SMD:R_0805_HandSoldering", "R3": "Resistor_SMD:R_0805_HandSoldering",

SVGs for RefDes R7 and R6 are displayed, for R2 and R3 not. Another issue is the wrong orientation of symbols as pin headers or SOT-23 packages. For me the whole procedure takes to much time and it is really annoying.

board front view:

front

board rear view:

rear

Electro707 commented 1 year ago

Could you try updating pcbdraw then running your script (ideally from git directly instead of a release). When I downloaded your SVG it looks black, even in Inkscape image

Unfortunately what happened with the resistor mapping is that in previous versions of KiCAD the resistor footprint used to be called R_0805_HandSoldering but that has changed in V6. There have been discussions as to handling cases like this without going thru and renaming files, such as in #66 and https://github.com/yaqwsx/PcbDraw-Lib/issues/24

Could you send the board files if possible? It looks like it might be a bug with how components are handled when placed on the backside of the board.

Andy79881 commented 1 year ago

Board file can be found in my github repository. I hope that you can access the file.

https://github.com/Andy79881/STM32L051-dev-board

Additionally I have created the following remap.json file: { "R6": "Resistor_SMD:R_0805_HandSoldering", "R7": "Resistor_SMD:R_0805_HandSoldering", "R2": "Resistor_SMD:R_0805_HandSoldering", "R3": "Resistor_SMD:R_0805_HandSoldering", "R1": "Resistor_SMD:R_0805_HandSoldering", "R4": "Resistor_SMD:R_0805_HandSoldering", "R5": "Resistor_SMD:R_0805_HandSoldering", "FB1": "Inductor_SMD:L_0805_2012Metric", "U2": "Housings_QFP:TQFP-48_7x7mm_Pitch0.5mm", "D2": "LED_SMD:LED_0603_1608Metric", "Q1": "TO_SOT_Packages_SMD:SOT-23", "C3": "Capacitor_SMD:C_0805", "C4": "Capacitor_SMD:C_0805", "C5": "Capacitor_SMD:C_0805", "C6": "Capacitor_SMD:C_0805", "C8": "Capacitor_SMD:C_0805", "C9": "Capacitor_SMD:C_0805", "J3": "../Eagle-export:2x02", "J2": "dummy:dummy", "J4": "dummy:dummy", "D1": "../Eagle-export:SOD123"

}

Andy79881 commented 1 year ago

I have tried to install the pcb draw under windows as follows: pip3 install git+https://github.com/yaqwsx/PcbDraw@master This works basically but I got error messages if the remap.json file is handled. After re-installing release v1.01 it works for me as before. I do not know what the issue with the git version is.

Electro707 commented 1 year ago

Hello, I have taken a look at your board file, and have come to the following conclusions so far:

Regarding PcbDraw not working with the git version, that is bizzare to me as I am currently using the master branch codebase. Can you send the error code when you tried using the master branch?

Bug with QFP package from flipping it image Improper Staggered LED from the backside: image Proper from the front: image