Complete PartDesign::Pad test cases

This commit is contained in:
Kurt Kremitzki
2017-06-15 01:25:12 -05:00
parent 96b029aece
commit 38ae53ea04
2 changed files with 118 additions and 3 deletions

View File

@@ -45,8 +45,8 @@ def CreateRectangleSketch(SketchFeature, corner, lengths, square=False):
SketchFeature.addConstraint(Sketcher.Constraint('Vertical',i+3))
# Fix the bottom left corner of the rectangle
App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceX',i+2,2,corner[0]))
App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('DistanceY',i+2,2,corner[1]))
SketchFeature.addConstraint(Sketcher.Constraint('DistanceX',i+2,2,corner[0]))
SketchFeature.addConstraint(Sketcher.Constraint('DistanceY',i+2,2,corner[1]))
# add dimensions
if square: