From 700d65d1f4d0a139dc3128b8666577b3e89d1963 Mon Sep 17 00:00:00 2001 From: qu1ck Date: Sun, 7 Jan 2024 10:20:24 -0800 Subject: [PATCH] Add PCB_FIELD drawing class, processed as text Fixes #439 --- InteractiveHtmlBom/ecad/kicad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InteractiveHtmlBom/ecad/kicad.py b/InteractiveHtmlBom/ecad/kicad.py index 5eef30d..450a640 100644 --- a/InteractiveHtmlBom/ecad/kicad.py +++ b/InteractiveHtmlBom/ecad/kicad.py @@ -351,7 +351,7 @@ def parse_drawing(self, d): s = None if d.GetClass() in ["DRAWSEGMENT", "MGRAPHIC", "PCB_SHAPE"]: s = self.parse_shape(d) - elif d.GetClass() in ["PTEXT", "MTEXT", "FP_TEXT", "PCB_TEXT"]: + elif d.GetClass() in ["PTEXT", "MTEXT", "FP_TEXT", "PCB_TEXT", "PCB_FIELD"]: s = self.parse_text(d) elif (d.GetClass().startswith("PCB_DIM") and hasattr(pcbnew, "VECTOR_SHAPEPTR")):