127 f_cover = self.form.frontCover.text()
128 f_cover = FreeCAD.Units.Quantity(f_cover).Value
129 b_cover = self.form.bottomCover.text()
130 b_cover = FreeCAD.Units.Quantity(b_cover).Value
131 r_cover = self.form.r_sideCover.text()
132 r_cover = FreeCAD.Units.Quantity(r_cover).Value
133 l_cover = self.form.l_sideCover.text()
134 l_cover = FreeCAD.Units.Quantity(l_cover).Value
135 t_cover = self.form.topCover.text()
136 t_cover = FreeCAD.Units.Quantity(t_cover).Value
137 diameter = self.form.diameter.text()
138 diameter = FreeCAD.Units.Quantity(diameter).Value
139 rounding = self.form.rounding.value()
140 orientation = self.form.orientation.currentText()
141 amount_check = self.form.amount_radio.isChecked()
142 spacing_check = self.form.spacing_radio.isChecked()
145 amount = self.form.amount.value()
146 rebar =
makeUShapeRebar(f_cover, b_cover, r_cover, l_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 =
makeUShapeRebar(f_cover, b_cover, r_cover, l_cover, diameter, t_cover, rounding,
False, spacing, orientation, self.
SelectedObj, self.
FaceName)
153 amount = self.form.amount.value()
154 rebar =
editUShapeRebar(self.
Rebar, f_cover, b_cover, r_cover, l_cover, diameter, t_cover, rounding,
True, amount, orientation, self.
SelectedObj, self.
FaceName)
156 spacing = self.form.spacing.text()
157 spacing = FreeCAD.Units.Quantity(spacing).Value
158 rebar =
editUShapeRebar(self.
Rebar, f_cover, b_cover, r_cover, l_cover, diameter, t_cover, rounding,
False, spacing, orientation, self.
SelectedObj, self.
FaceName)
161 FreeCAD.ActiveDocument.recompute()
163 if signal == int(QtGui.QDialogButtonBox.Apply):
166 FreeCADGui.Control.closeDialog(self)
def makeUShapeRebar(f_cover, b_cover, r_cover, l_cover, diameter, t_cover, rounding, amount_spacing_check, amount_spacing_value, orientation="Bottom", structure=None, facename=None)
def accept(self, signal=None)
def editUShapeRebar(Rebar, f_cover, b_cover, r_cover, l_cover, diameter, t_cover, rounding, amount_spacing_check, amount_spacing_value, orientation, structure=None, facename=None)