Skip to content

Commit

Permalink
Merge pull request #19
Browse files Browse the repository at this point in the history
Fixes for KiCad 7 nightly compatibility
  • Loading branch information
bennymeg authored Sep 28, 2022
2 parents 94bbea2 + 45cb109 commit 5b43ce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def generate_gerber(self, temp_dir):
plot_options.SetScale(1)
plot_options.SetMirror(False)
plot_options.SetUseGerberAttributes(True)
plot_options.SetExcludeEdgeLayer(True)
if hasattr(plot_options, "SetExcludeEdgeLayer"):
plot_options.SetExcludeEdgeLayer(True)
plot_options.SetUseGerberProtelExtensions(False)
plot_options.SetUseAuxOrigin(True)
plot_options.SetSubtractMaskFromSilk(False)
Expand Down Expand Up @@ -107,7 +108,7 @@ def generate_positions(self, temp_dir):
'Designator': "{}{}{}".format(footprint.GetReference(), "" if unique_id == "" else "_", unique_id),
'Mid X': (footprint.GetPosition()[0] - self.board.GetDesignSettings().GetAuxOrigin()[0]) / 1000000.0,
'Mid Y': (footprint.GetPosition()[1] - self.board.GetDesignSettings().GetAuxOrigin()[1]) * -1.0 / 1000000.0,
'Rotation': footprint.GetOrientation() / 10.0,
'Rotation': footprint.GetOrientation().AsDegrees() if hasattr(footprint.GetOrientation(), 'AsDegrees') else footprint.GetOrientation() / 10.0,
'Layer': layer,
})

Expand Down

0 comments on commit 5b43ce9

Please sign in to comment.