Skip to content

Commit

Permalink
Fixed bugs rebars created in wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit3701 committed Jun 18, 2017
1 parent 29719ce commit 0397796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions StraightRebar.py
Expand Up @@ -72,6 +72,7 @@ def makeStraightRebar(f_cover, b_cover, s_cover, diameter, amount_spacing_check,
sketch = FreeCAD.activeDocument().addObject('Sketcher::SketchObject','Sketch')
sketch.MapMode = "FlatFace"
sketch.Support = [(selected_obj.Object, selected_obj.SubElementNames[0])]
FreeCAD.ActiveDocument.recompute()
sketch.addGeometry(Part.LineSegment(FreeCAD.Vector(x1, y1, 0), FreeCAD.Vector(x2, y2, 0)), False)
if amount_spacing_check == True:
rebar = Arch.makeRebar(selected_obj.Object, sketch, diameter, amount_spacing_value, f_cover)
Expand Down

0 comments on commit 0397796

Please sign in to comment.