119 f_cover = self.form.frontCover.text()
120 f_cover = FreeCAD.Units.Quantity(f_cover).Value
121 b_cover = self.form.bottomCover.text()
122 b_cover = FreeCAD.Units.Quantity(b_cover).Value
123 l_cover = self.form.l_sideCover.text()
124 l_cover = FreeCAD.Units.Quantity(l_cover).Value
125 r_cover = self.form.r_sideCover.text()
126 r_cover = FreeCAD.Units.Quantity(r_cover).Value
127 t_cover = self.form.topCover.text()
128 t_cover = FreeCAD.Units.Quantity(t_cover).Value
129 diameter = self.form.diameter.text()
130 diameter = FreeCAD.Units.Quantity(diameter).Value
131 rounding = self.form.rounding.value()
132 orientation = self.form.orientation.currentText()
133 amount_check = self.form.amount_radio.isChecked()
134 spacing_check = self.form.spacing_radio.isChecked()
137 amount = self.form.amount.value()
138 rebar =
makeLShapeRebar(f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding,
True, amount, orientation, self.
SelectedObj, self.
FaceName)
140 spacing = self.form.spacing.text()
141 spacing = FreeCAD.Units.Quantity(spacing).Value
142 rebar =
makeLShapeRebar(f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding,
False, spacing, orientation, self.
SelectedObj, self.
FaceName)
145 amount = self.form.amount.value()
146 rebar =
editLShapeRebar(self.
Rebar, f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding,
True, amount, orientation, self.
SelectedObj, self.
FaceName)
148 spacing = self.form.spacing.text()
149 spacing = FreeCAD.Units.Quantity(spacing).Value
150 rebar =
editLShapeRebar(self.
Rebar, f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding,
False, spacing, orientation, self.
SelectedObj, self.
FaceName)
153 FreeCAD.ActiveDocument.recompute()
155 if signal == int(QtGui.QDialogButtonBox.Apply):
158 FreeCADGui.Control.closeDialog(self)
def accept(self, signal=None)
def editLShapeRebar(Rebar, f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding, amount_spacing_check, amount_spacing_value, orientation, structure=None, facename=None)
def makeLShapeRebar(f_cover, b_cover, l_cover, r_cover, diameter, t_cover, rounding, amount_spacing_check, amount_spacing_value, orientation="Bottom Left", structure=None, facename=None)