-
Notifications
You must be signed in to change notification settings - Fork 11
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
Featurerequest: Virtual Parameters #70
Comments
Could you send through some screenshots of the data you want in kicad? |
Mainly this one: But it probably needs a different name so that the KiCad JLC Plugin accepts it. Here's a list of the names that are accepted so it would probably be best to be able to define it in the UI. Also the name / value are something that I'm not that much of a fan of: I set the value to the part value (which is fine, even though I'd like it to be shortened automatically to Again, I'm not sure if this is in scope for this addon or if this is even something anyone would want from it. Maybe this is just my weird way of using it. But as a general feedback, this is something that bothers me. |
I'd like to also add that the last point is only something I'd want for basic parts such as capacitors. Because I'll have quite a lot of them in the list and it would make it easier to find them in KiCad if their name was less cryptic. So if this is something you'd like to add, then it is something that should be in the categories settings |
The plugin should only provide "non-volatile" data to KiCad to keep the schematic simple and consistent over time. Let's say your supplier is shutting down and you would need a new one, KiCad would still display the old supplier unless updated. InvenTree got the facilities to cater for that. |
So I guess it comes down to me being unfamiliar with InvenTree |
We actually work the other way around. We import BOMs from KiCad into InvenTree part assembly BOMs which then shows you what's in stock and what's missing. Then you can create a purchase order for a specific distributor and upload that as csv file almost straight into your cart. Has been working like a treat so far. I think there are actually plugins in the work which will automate that even more. |
Looking forward to it! This is still all a bit new to me and I have yet to learn what is coming. Is there somewhere a resource for stuff like this? So I can read into it more? Because this list seems to be a bit out of date |
The InvenTree's docs are quite good I think. It's just a lot to go through. It helps to have a look at InvenTree's demo server. It's pretty cool what it can do. |
@TimGoll just letting you know that I am currently looking into adding this feature. |
awesome, I'm looking forward to it |
I have a problem that could potentially also be solved by something like virtual parameters / templates. |
@afkiwers Any updates on this? We finally came around setting up our inventree server and I'm trying to figure out what the best practices would be. Right now I'd like to use something like virtual parameters. You however suggested a different approach that I did not yet figure out. |
Hi Tim, Unfortunately I don't really have a lot of time to work on that plugin at the moment. Sorry about that. |
Understandable. Thank you! |
My team manager is open to chip in a few of my dev hours to implement such a feature. Could you line out how you'd do it, so that it matches your ideas. Thanks! |
Hi Tim, I am happy for you to lead this one. Here is probably the best place to discuss your ideas. In general, as long as it doesn't disturb any of the other features I'm open to whatever helps you. |
Okay, here's what I think would work:
Not sure yet on where to start, if you have any pointers I'm open to that. Otherwise I will look through your code and see how you did things. |
I'm not 100% sure if this is the right place to ask. Maybe this should be directed at inventree itself. But I try it here first anyway.
I'm using this tool to import LCSC parts into inventree. I'm not sure that this is the best way to do it, but this is how I do it right now.
It works really good, but it adds stuff such as the
Supplier Part Number
to the supplier tab. Which makes sense if you look at it that way. However I'm unable to get this value in KiCad and I'd like to have theLCSC Part #
as a parameter in KiCad so the exported BOM works to order the PCBs.The easiest solution for me would be to edit the aforementioned tool. But I'm wondering if you could add to your addon some sort of virtual parameter that adds the LCSC part number (or any MPN for that matter) to the KiCad parameters.
Maybe something in this menu:
![image](https://private-user-images.githubusercontent.com/13639408/301630625-bffa5ae2-c5f6-40ee-b974-697e83845db4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwOTQ5NTIsIm5iZiI6MTczOTA5NDY1MiwicGF0aCI6Ii8xMzYzOTQwOC8zMDE2MzA2MjUtYmZmYTVhZTItYzVmNi00MGVlLWI5NzQtNjk3ZTgzODQ1ZGI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA5NTA1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxYjc3OGU1NTkwMTYzYjcxNzZhZWFmNWQwYmZkZmQ5YmI4MjZlNGY0NmQ0NjBiNTg5MDM5OTkzMzRlMjM2NWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Gw_hL5L0tt6SviBlyvqFoCcrHgJnGPw9G3IIs4feKc0)
Sorry for the rambling and feel free to close if this is out of scope for this addon!
The text was updated successfully, but these errors were encountered: