From c94b03042c817b0dd8861764346177fc17cb6706 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 21 Mar 2023 06:53:09 -0300 Subject: [PATCH] [PcbDraw][KiCad 5] Disable tolerance look-up - No properties in footprints --- kibot/PcbDraw/plot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kibot/PcbDraw/plot.py b/kibot/PcbDraw/plot.py index a262732b..468f6891 100644 --- a/kibot/PcbDraw/plot.py +++ b/kibot/PcbDraw/plot.py @@ -1092,11 +1092,12 @@ class PcbPlotter(): lib = str(footprint.GetFPID().GetLibNickname()).strip() name = str(footprint.GetFPID().GetLibItemName()).strip() value = footprint.GetValue().strip() - # Look for a tolerance in the properties - prop = footprint.GetProperties() - tol = prop.get('tol', prop.get('tolerance', None)) - if tol: - value = value+' '+tol + if not LEGACY_KICAD: + # Look for a tolerance in the properties + prop = footprint.GetProperties() + tol = prop.get('tol', prop.get('tolerance', None)) + if tol: + value = value+' '+tol ref = footprint.GetReference().strip() center = footprint.GetPosition() orient = math.radians(footprint.GetOrientation().AsDegrees())