kicad-packages3D-source icon indicating copy to clipboard operation
kicad-packages3D-source copied to clipboard

Added files for JST connector series XH-AM.

Open MountyRox opened this issue 4 years ago • 6 comments

One file is is for the 1 pin connector, the other file for all connectors from 2 pins to 12 pins. The number of pins can be edited via a spreadsheet.

On branch Conn_JST_XH_AM

  • Changes to be committed:
    • new file: Connector_JST.3dshapes/JST_XH_B1B-XH-AM_1x01_P2.50mm_Vertical.FCStd
    • new file: Connector_JST.3dshapes/JST_XH_BxxB-XH-AM_1xXX_P2.50mm_Vertical.FCStd

If you prefer to have one source 3D file for each connector type instead of one parametric file, please let me know.

The datasheet from JST JST_XH_AM_data

Here are some examples (1 pin and 10 pins): 1x01iso1 1x01iso 1x10iso

The spreadsheet for editing the number of pins: image

MountyRox avatar Sep 02 '20 11:09 MountyRox

Thanks for your efforts to learn the library and 3D model scripting and create so many families of models recently!!

For easier tracking in the future, can you go back and add the script update PR to each of your PRs in this repo? I assume you have created PRs for the script somewhere at https://github.com/easyw/kicad-3d-models-in-freecad, or perhaps somewhere else at GitHub. If someone needs to make any updates in the future, being able to find this PR and then just right to the script will be helpful. Thank you!

evanshultz avatar Sep 02 '20 13:09 evanshultz

As far as I can see, there is no script, but different FPs are creating by changing parameters in a spreadsheet within the FreeCAD file. Is that correct @MountyRox?

chschlue avatar Sep 02 '20 17:09 chschlue

@chschlue Yes its correct, i created the different models by changing the Number Pins (nPin) parameter in the spreadsheet.

With scripting i am not familiar at the moment. May be its useful to learn more about scripting. As i stated in the PR, i can submit a discrete FreeCAD file for each connector type, if you prefer this.

MountyRox avatar Sep 02 '20 18:09 MountyRox

No, it's fine the way it is.

Just note that your models may be replaced with scripted ones in the future.

chschlue avatar Sep 02 '20 18:09 chschlue

Can anybody give a hint where i can find more information to learn more about writing Python scripts to generate 3D models? Thanks a lot.

MountyRox avatar Sep 03 '20 05:09 MountyRox

I found the very good CADQuery documentation, a lot of new stuff to learn :sweat::smile:, however if someone has another helping hint, he's welcome.

MountyRox avatar Sep 03 '20 15:09 MountyRox