-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a new symbol from the library #1
Comments
Hello Siddharth, Thanks :) Short version: no, you're not using it wrong, there simply is no such functionality (at least at this stage). Symbols may be clone()d, but constructing them from scratch was a toughie. If you read in any schematic, choose one of the symbols and use the not-really-documented raw() method
Simpler objects can be created fresh, and these are actually instantiated based on templates in skip.element_template. In theory, the same might be doable for symbols, but the raw() dump above will give you an idea of just how many elements you'd have to tweak (meaning either make the user responsible for, or actually force as arguments to the constructor). Sorry I can't give you a better answer on that front. |
Thanks Pat, I totally understand. I was just going through the templates in skip.element_template, and understood what maybe limiting the generalization. Just wondering if there could be some code that we could borrow from skidl (https://github.com/devbisme/skidl). That said, I'm new to library development, but I'll be super happy to take a shot at implementing this functionality. This library has the potential to open up a new world of possibilities for integrating AI into KiCAD. The lack of an eeschema API is the primary roadblock! |
Thank you for the pioneering work!
I was trying add a new symbol from the KiCAD library (installed on my PC). There doesn't seem to be function that allows me to do so, or maybe I'm not using it correctly :)
The text was updated successfully, but these errors were encountered: