Skip to content
Permalink
Browse files

Fixed bugs rebars created in wrong direction

  • Loading branch information...
amrit3701 committed Jun 18, 2017
1 parent 29719ce commit 0397796b38008254f3d60168f05bd3d3582dde80
Showing with 1 addition and 0 deletions.
  1. +1 −0 StraightRebar.py
@@ -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)

0 comments on commit 0397796

Please sign in to comment.
You can’t perform that action at this time.