-
-
Notifications
You must be signed in to change notification settings - Fork 121
LCSC values not removed from board #566
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
Comments
About the side note : I was able to fix this in datamodel.py line 215 (function remove_lcsc_number), by replacing item[self.columns["PARAMS_COL"]] = "" with obj[self.columns["PARAMS_COL"]] = "" |
By looking at the code in mainwindow.py, it seems like assigning an LCSC number also adds it to the board automatically. However, removing it only removes the LCSC number from the main plugin interface, note from the board. I added the following code between line 740 and 741, and it seems to work : board = self.pcbnew.GetBoard() I'm not sure that this is the correct way to implement the solution though ! |
Would you mind submiting a PR? |
See issue Bouni#566. With this commit : - When LCSC value is removed from a component in the main window, the params display gets updated as well. - When LCSC value is removed from a component in the main window, the footprint's LCSC field is emptied as well, preventing the footprint from reloading its previous LCSC value into the database.
Thanks for your replied Bouni ! I think I managed to make a pull request. |
…569) * Fixed params display in mainwindow and LCSC board value when removed See issue #566. With this commit : - When LCSC value is removed from a component in the main window, the params display gets updated as well. - When LCSC value is removed from a component in the main window, the footprint's LCSC field is emptied as well, preventing the footprint from reloading its previous LCSC value into the database. * Improve resistor unit management Improvement : when a component designator starts with an "R" and its value ends either with R (like in a 180R resistor), r (like a 180r resistor) or an o (like a 180o resistor), replace the last letter with the Omega symbol. Will work with different value ranges (kR, kr, ko, MR, Mr, Mo, whatever people use...)
Hi everyone ! Not sure if that's just me or if the issue is common to everyone, so here it goes.
Problem : after setting an LCSC value to a component, a custom LCSC field appears for that specific component at board level. If you remove LCSC number from the plugin's interface, then close the interface and open it up again, the board's LCSC value has not been removed and now appears again. This behaviour prevents
Steps to reproduce the behavior:
Expected behaviour :
When removing the LCSC value on the plugin interface, value should also be removed from the custom field of the component in the board.
Side note : when removing the LCSC value, the LCSC number, type and stock numbers will not be removed immediately, only if you click somewhere else. Also, the new LCSC Params column is not removed at all, even if you click somewhere else. Should I open another issue for this visual problems ? I'm not really used to using Github a lot :)
Thank you very much for your help !
Best regards
The text was updated successfully, but these errors were encountered: