From 29867405306af2630c81e85bae1ee07c55d12a23 Mon Sep 17 00:00:00 2001 From: Diego Capusotto Date: Fri, 17 Dec 2021 14:24:05 -0300 Subject: [PATCH] Fixed missing datasheet data in v6 loader --- kibot/kicad/v6_sch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kibot/kicad/v6_sch.py b/kibot/kicad/v6_sch.py index a8da03b6..2eed618e 100644 --- a/kibot/kicad/v6_sch.py +++ b/kibot/kicad/v6_sch.py @@ -670,6 +670,10 @@ class SchematicComponentV6(SchematicComponent): parent.fields_lc.add(name_lc) # Add to the component comp.add_field(field) + if field.number == 3: + # Reference, Value and Footprint are defined by the instance. + # But datasheet must be transferred from this field. + comp.datasheet = field.value # PINS... elif i_type == 'pin': pin_name = _check_str(i, 1, name + 'pin name')