Skip to content

Commit

Permalink
Ignore symbol instances in subsheets
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Oct 31, 2022
1 parent 90cded9 commit 933cbf9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kikit/eeschema_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,17 @@ def collectSymbols(filename, path=""):
f = dirname + "/" + f
s, i = collectSymbols(f, path + "/" + uuid)
symbols += s
instances += i
# The instances shouldn't appear in subsheets, however, in cases
# when the sheet used to be a top-level sheet, they are preserved by
# KiCAD. So we intentionally ignore them.
#
# instances += i
continue
if isSymbolInstances(item):
for p in item.items:
if isPath(p):
instances.append(extractSymbolInstance(p))
continue

return symbols, instances


Expand Down

0 comments on commit 933cbf9

Please sign in to comment.