File tree 3 files changed +5
-12
lines changed
SparkFunKiCadBOMGenerator
3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ def __init__(self):
38
38
39
39
self .kicad_build_version = pcbnew .GetBuildVersion ()
40
40
41
- def IsVersion (self , VersionStr ):
42
- for v in VersionStr :
43
- if v in self .kicad_build_version :
44
- return True
45
- return False
46
-
47
41
def Run (self ):
48
42
if self ._pcbnew_frame is None :
49
43
try :
@@ -83,10 +77,9 @@ def Run(self):
83
77
name = name .split (":" )[1 ]
84
78
prod_id = ""
85
79
hasProdID = False
86
- if hasattr (sourceModule , "HasProperty" ):
87
- if sourceModule .HasProperty ("PROD_ID" ):
88
- prod_id = sourceModule .GetPropertyNative ("PROD_ID" )
89
- hasProdID = True
80
+ if sourceModule .HasFieldByName ("PROD_ID" ): # Breaking change for KiCad 8
81
+ prod_id = sourceModule .GetFieldText ("PROD_ID" ) # Breaking change for KiCad 8
82
+ hasProdID = True
90
83
if hasProdID :
91
84
if prod_id == "" :
92
85
prod_id = ">> EMPTY <<"
Original file line number Diff line number Diff line change 1
- __version__ = "1.0.3 "
1
+ __version__ = "1.1.0 "
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://go.kicad.org/pcm/schemas/v1" ,
3
3
"name" : " SparkFun KiCad BOM Generator" ,
4
- "description" : " SparkFun's simple PCB BOM generator for KiCad 7" ,
4
+ "description" : " SparkFun's simple PCB BOM generator for KiCad 7 / 8 " ,
5
5
"description_full" : " Generates the SparkFun Bill Of Materials for a KiCad 7 PCB or panel" ,
6
6
"identifier" : " com.github.sparkfun.SparkFunKiCadBOMGenerator" ,
7
7
"type" : " plugin" ,
You can’t perform that action at this time.
0 commit comments