Coder Social home page Coder Social logo

Comments (3)

TousstNicolas avatar TousstNicolas commented on August 15, 2024

Hi,

Thank you for submitting your feature request.

A possibility is to add an option to specify the base path of the 3D model with a variable.

Something like JLC2KiCadLib C1337258 -model_base_variable MY_3DMODEL_LIBRARY. The component library will still be created in the same place, but the 3D model will linked using $(MY_3DMODEL_LIBRARY)/3Dfile.wrl, so if you move the footprint later, the link to the 3D model will not be broken.

Would something like this works for you ?

from jlc2kicad_lib.

ste2425 avatar ste2425 commented on August 15, 2024

That sounds like a very good idea.

Maybe fallback to the original behaviour if that argument isn't provided so it isn't a breaking change for other users.

from jlc2kicad_lib.

TousstNicolas avatar TousstNicolas commented on August 15, 2024

I implemented the solution mentioned before, you can try it by installing from source :

git clone https://github.com/TousstNicolas/JLC2KiCad_lib.git
cd JLC2KiCad_lib 
pip install . 

Then you should be able to use the -model_base_variable MY_3DMODEL_LIBRARY argument.
Let me know if you encounter any issue.

I will update the PyPI repository after further testing.

from jlc2kicad_lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.