kicad-jlcpcb-tools
kicad-jlcpcb-tools copied to clipboard
Rotation override by component property
Just like using the 'LCSC Part #' property to auto compile the JLC part number, it would be useful if the 'JLCPCB Rotation Offset' were implemented as a Rotation table override for specific board component. Sometime it happens one package has to be rotate in one board and in other not. (I've found this problem with the Potentiometer_Bourns_3296W_Vertical package, as example the C118954 part).
Can you go a bit more into detail why a part has to be rotated in one board but not in the other? That makes no sense to me ....
I've investigate further to prepare a sample for you. And I've found something "strange".
Let's take just the RV1 component (Potentiometer_Bourns_3296W_Vertical)
On the board1 with the placement error I've this CPL line for RV1
RV1,1K,Potentiometer_Bourns_3296W_Vertical,54.864,-77.988,90.0,top
But on the JLCPCB Tools (2023.09.01), the RV1 line looks like this (no rotation, rotation = zero 0)
On JLCPCB it looks like the image attached below (90 degree rotated)
The other board indeed has RV1 with not rotation, the CPL line is: RV1,10k,Potentiometer_Bourns_3296W_Vertical,85.969,-87.376,0.0,top And I've no error on JLCPCB online.
So I suppose It's something related to just one board. Find attached by rotation Export.
Can you go a bit more into detail why a part has to be rotated in one board but not in the other? That makes no sense to me ....
- Because there can be multiple footprints with the same name - embedded in PCB file - that have different rotations - this happened to me after importing from Altium. I didn't bother making 100s of footprints to be all the same orientation.
- It is also not guaranteed that JLC parts will be always consistent for a given footprint
Of course for a perfect board / ideal world this shouldn't be an issue.
In practise, I use https://github.com/bennymeg/JLC-Plugin-for-KiCad for more messy projects which need corrections per component.
Thank you,
I have tried JLC-Plugin-for-KiCad but I prefer the way this plugin works. To me what can solve this issue is a "JLCPCB Rotation Offset" 'JlcRotOffset' 'JLCRotOffset' field as a parameter, or at least prioritize the "JLCPCB Rotation Offset" parameter if exists. But it has to be implemented as a new features.