Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions InteractiveHtmlBom/ecad/fusion_eagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,16 @@ def _parse(self, brdfile):
"found".format(el.attrib['package'],
el.attrib['library']))

# Local patch: derive THT/SMD from the footprint pads
has_th = package.find('pad') is not None
has_smd = package.find('smd') is not None
mount_key = 'Montage'
if self.config.normalize_field_case:
mount_key = mount_key.lower()
comp.extra_fields[mount_key] = (
'THT+SMD' if has_th and has_smd else
'THT' if has_th else 'SMD' if has_smd else 'MECH')

elx = float(el.attrib['x'])
ely = float(el.attrib['y'])
refdes = el.attrib['name']
Expand Down