Skip to content

Commit

Permalink
[Column List][Bom][Added] Added 'Net Label' column
Browse files Browse the repository at this point in the history
Similar to Net Name but without the path. Only displays the Net Label given in the schematic
  • Loading branch information
nguyen-v committed Nov 21, 2024
1 parent d96e2ec commit 096500a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kibot/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def update_fields(self, conv, bottom_negative_x, x_origin, y_origin, angle_posit
if not self.fields[ColumnList.COL_DESCRIPTION_L]:
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
self.fields[ColumnList.COL_NET_NAME_L] = comp.net_name
self.fields[ColumnList.COL_NET_LABEL_L] = comp.net_name.split('/')[-1]
self.fields[ColumnList.COL_NET_CLASS_L] = comp.net_class
# KiCad attributes
self.fields[ColumnList.COL_DNP_L] = self.solve_multiple_attributes('kicad_dnp', 'DNP')
Expand Down
2 changes: 2 additions & 0 deletions kibot/bom/columnlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class ColumnList:
COL_STATUS_L = COL_STATUS.lower()
COL_NET_NAME = 'Net Name'
COL_NET_NAME_L = COL_NET_NAME.lower()
COL_NET_LABEL = 'Net Label'
COL_NET_LABEL_L = COL_NET_LABEL.lower()
COL_NET_CLASS = 'Net Class'
COL_NET_CLASS_L = COL_NET_CLASS.lower()
# KiCad attributes
Expand Down

0 comments on commit 096500a

Please sign in to comment.