Skip to content

Commit

Permalink
Make sure project settings are transferred correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Jan 26, 2025
1 parent ac2ef97 commit b1b0f65
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,6 @@ def save(self, reconstructArcs: bool=False, refillAllZones: bool=False,
zone.SetZoneName(newName)
self.board.Save(self.filename)

self.makeLayersVisible() # as they are not in KiCAD 6
self.transferProjectSettings()
self.writeCustomDrcRules()

# Remove cuts
for cut, _ in vcuts:
self.board.Remove(cut)
Expand Down Expand Up @@ -625,7 +621,15 @@ def save(self, reconstructArcs: bool=False, refillAllZones: bool=False,
fillerTool.Fill(zonesToRefill)

fillBoard.Save(self.filename)

# There are some properties of the board inaccessible from the Python
# API. Let's modify the project files directly. Note that this has to be
# done after the board is saved
self._adjustPageSize()
self.makeLayersVisible() # as they are not in KiCAD 6
self.transferProjectSettings()
self.writeCustomDrcRules()


def _getRefillEdges(self, reconstructArcs: bool):
"""
Expand Down

0 comments on commit b1b0f65

Please sign in to comment.