-
Notifications
You must be signed in to change notification settings - Fork 8
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
Kicad Nightly build plugin not working #14
Comments
Looking at this more in detail as Kicad 8 is close to release. Here is the specific version info for what I am using: Application: KiCad x86_64 on x86_64 Version: 8.0.0 Libraries: Platform: Ubuntu 22.04.3 LTS, 64 bit, Little endian, wxGTK, X11, ubuntu, x11 Build Info: Build settings: Kicad either completely crashes or puts a dialog up reading: "FOOTPRINT has no attribute HasProperty." No other details at the moment. |
Got this working..... To modify this to work with Kicad 8.0 open process.py and find the function replace with this modified version: def get_mpn_from_footprint(self, f):
keys = ['mpn', 'MPN', 'Mpn', 'PCBWay_MPN' ,'part number', 'Part Number', 'Part No.', 'Mfr. Part No.', 'Mfg Part']
for key in keys:
if f.HasField(key):
return f.GetFieldByName(key).GetText() |
Thanks for the feedback,I will ask our engineer double check it |
@pcbway Any update on when this might get fixed? |
If it helps I can do a fork and pull request.... |
Hi |
I'm using the latest KiCAD version 8.0.0. This changes work for me and the output files looks good too. |
If by this method, the kicad7 version will not be able to use the plug-in. We are communicating with the kicad manager about this. |
@pcbway That is a fair point.... Here is a fix that should work for either 7 or 8. (I have not tested yet) def get_mpn_from_footprint(self, f):
keys = ['mpn', 'MPN', 'Mpn', 'PCBWay_MPN' ,'part number', 'Part Number', 'Part No.', 'Mfr. Part No.', 'Mfg Part']
v = int(pcbnew.Version()[0])
if v == 7:
for key in keys:
if f.HasProperty(key):
return f.GetProperty(key)
else:
for key in keys:
if f.HasField(key):
return f.GetFieldByName(key).GetText() |
Tested on 8.0.0 and 7.0.11 on Windows 11. Works like a charm on both. |
We have submitted the code update, and when it is passed,the kicad 8 and kicad 7 will both work well. |
Hi,Everyone,The plug-in has been updated and can now adapt to kicad8 and kicad7 versions. You can update and use it directly. |
Trying to export of the Gerber files for the latest KiCad build and the PCB way plugin keep crashing. System is Linux Mint 21.1
I tried to modify the code as suggested by others in older issues, but no luck.
Regards
Rob Oudendijk
The text was updated successfully, but these errors were encountered: