bennymeg / Fabrication-Toolkit

An JLC PCB Fabrication Plugin for KiCad
Apache License 2.0
300 stars 52 forks source link

Add support for offset in the database. #106

Closed Shackmeister closed 9 months ago

Shackmeister commented 9 months ago

Currently the database only support rotational offsets. Including X and Y would greatly improve the ease of use

bennymeg commented 9 months ago

You can use 'JLCPCB Position Offset' for that.

Frank-UXV commented 9 months ago

Thats a field inside the schematic correct?

Shackmeister commented 9 months ago

I currently have 100+ design , so being able to have the database externally is definitely nicer. This also makes it easier to make a combined effort

bennymeg commented 9 months ago

Thats a field inside the schematic correct?

Yes

I currently have 100+ design , so being able to have the database externally is definitely nicer. This also makes it easier to make a combined effort

I'm not sure I understand, please explain further. Keep in mind the there is an offset database that will fix most of the common components offsets (if that hat you meant). It will take effect in v4 since it is a breaking change.

Shackmeister commented 9 months ago

I'm not sure I understand, please explain further. Keep in mind the there is an offset database that will fix most of the common components offsets (if that hat you meant). It will take effect in v4 since it is a breaking change.

My point was that I would prefer not to add the schematic field to all my kicad projects. Preferably a database outside the kicad project would be highly preferable.

Is this the database you are refering to? https://github.com/bennymeg/JLC-Plugin-for-KiCad/blob/master/plugins/rotations.cf If so, my original point was it only supports rotational offset, and not X/Y offset. If we could add something like ^VSSOP-10_- 270 -1.0 3.5 to tell it to be 270 degrees, X offset = -1mm and Y offset = 3.5mm. it would be all I need :)

bennymeg commented 9 months ago

I do think the X/Y offset is the same for all the packages (i.e. I think the are many VSSOP-10 variants). So, what works for rotation wight not work for translations. This need to be verified, but currently I am not planning to explore it (it seems like a rabbit hole).

Shackmeister commented 9 months ago

The VSSOP was only an example. I think there are plenty of cases which will not need the offset. Connectors however are very prone to need offsets as well as rotations

Shackmeister commented 8 months ago

@bennymeg I have been playing around with the rotations.cf, but no matter what I change, I cannot get a rotations added in the output file. Can you please have a look if something is broken? For instance an SOT-23 footprint will always get 0 deg rotation added, eventhough it's set to 180.

Shackmeister commented 8 months ago

I see it's not hooked up on line 192¨here: https://github.com/bennymeg/JLC-Plugin-for-KiCad/blob/master/plugins/process.py Trying to enable it gave me: 'FOOTPRINT' object has no attribute 'split'

bennymeg commented 8 months ago

You can try testing PR #96. It would be included in v4.

Shackmeister commented 8 months ago

Thanks! I'll give it a try. Any idea when V4 will come out? :)