Add screwholes param to Boxes.NEMA()

This commit is contained in:
Florian Festi 2020-08-04 19:30:58 +02:00
parent 9bbca5419f
commit bdc6a4c110
1 changed files with 3 additions and 1 deletions

View File

@ -1343,7 +1343,7 @@ class Boxes:
}
@restore
def NEMA(self, size, x=0, y=0, angle=0):
def NEMA(self, size, x=0, y=0, angle=0, screwholes=None):
"""Draw holes for mounting a NEMA stepper motor
:param size: Nominal size in tenths of inches
@ -1353,6 +1353,8 @@ class Boxes:
"""
width, flange, holedistance, diameter = self.nema_sizes[size]
if screwholes:
diameter = screwholes
self.moveTo(x, y, angle)
if self.debug:
self.rectangularHole(0, 0, width, width)