Conversation
Hi Are you interested in remaking with scripts instead of hand making them? |
I don't understand the requirement for scripting. I'm not saying I will not switch to scripting but I don't know when I will have the time to figure out the apis. |
We only require scripting for families that already have a script prepared that can make them. (For all others it is only a bonus.) Edt: For some reason i though these where dc/dc converters when i wrote this (which would have meant that yes should use the existing script) As we do not have a relay script it might not be as trivial to script them and should therefore really not be required (The dc/dc converter script might be easy to convert but i have not looked into it. Might be best to add a generic "box plus straight lead" generator that gets the lead positions, lead diameter, box size and color plus as parameters. Might be something i could look into next.) |
@poeschlr that totally makes sense. But I hope when contributor makes effort to make a more accurate model we will favor that over script generated one. |
@qu1ck |
I do not think we should prefer manual made over scripted for any reason. (assuming of course the scripted version is of adequate quality.) As said if there is a script available it simply has to be used as maintenance reduction must be one of the highest if not the highest priority for the official lib (We are not lacking contributors but maintainers. Case in point see the number of open pull requests that have not even been looked at.) Edit: to make it clear: This pull request is in the clear as we do not have a script for these parts. But you made a generic comment which i simply can not leave standing without comment. |
Can you add an example of maintenance needed for models? Assuming they are not broken from the start, in which case they shouldn't be accepted in the first place, I can't think of a reason to ever touch them again after check-in. It's not like physical part changes over time and it's model morphs into new shapes. Someone mentioned file name change but having a script doesn't help here. I agree that if there is a scripted model of adequate quality it shouldn't be replaced by hand made one just because it looks marginally better. Simply time spent to check new model isn't worth it. But the other way around shouldn't be the case imho, better models shouldn't be replaced by worse ones just because they are scripted. |
Maintenance so far has been: All of these are much much easier maintained by scripts. Ofcourse alot of models are not worth scripting, but for similar series it's great |
You missed one very important aspect. When we have a trusted script then we really only need to check the data entered into the size definition description for accepting assets. Without that we would need to open the model in freecad and check its dimensions manually against the datasheet. (From footprints i know that it takes minutes to check a scripted submission but can easily take half an hour to check a handmade one. Even if it is a very similar one. For models it is the same or even worse.) |
Rene, that is one time check and doesn't count as maintenance, but Shackmeister's answer has valid points. |
The main work of us maintainers is the first time check. Edit: My goal is to reduce the workload of maintainers not necessary the discussion of what the word maintenance truly means. |
@qu1ck There is no scripts for relays today but I will simply copy the scripts for AC/DC, remove the AC/DC from the parameter file and add your relays. I promise you, you comment afterward will be |
@Misca1234 by all means, go for it. I'll look at your scripts and learn from them and others already in the repo. |
Here is the push If you are ok with it, you can close this thread The key file is the This one define the transformers The script was a copy of the DCDC script so the script was not written for the transformers |
Models for these relays are based on datasheet and an example specimen found in my parts box.
Created in FreeCad and exported with stepUp toolkit.
Datasheet with technical drawings:
http://www.sanyourelay.ca/public/products/pdf/SRD.pdf
PR for source file:
KiCad/kicad-packages3D-source#219
Thanks for creating a pull request to contribute to the KiCad libraries! To speed up integration of your PR, please check the following items as you complete them: