24 __title__ =
"RebarCommands" 25 __author__ =
"Amritpal Singh" 26 __url__ =
"https://www.freecadweb.org" 28 from PySide.QtCore
import QT_TRANSLATE_NOOP
35 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/StraightRebar.svg',
36 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"Straight Rebar"),
37 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a Striaght bar reinforcement from the selected face of the Structural element.")}
40 if FreeCADGui.ActiveDocument:
53 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/UShapeRebar.svg',
54 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"U-Shape Rebar"),
55 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a U-Shape bar reinforcement from the selected face of the Structural element.")}
58 if FreeCADGui.ActiveDocument:
71 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/LShapeRebar.svg',
72 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"L-Shape Rebar"),
73 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a L-Shape bar reinforcement from the selected face of the Structural element.")}
76 if FreeCADGui.ActiveDocument:
89 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/StirrupRebar.svg',
90 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"Stirrup"),
91 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a Stirrup bar reinforcement from the selected face of the Structural element.")}
94 if FreeCADGui.ActiveDocument:
107 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/BentShapeRebar.svg',
108 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"Bent-Shape Rebar"),
109 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a BentShape bar reinforcement from the selected face of the Structural element.")}
112 if FreeCADGui.ActiveDocument:
118 import BentShapeRebar
125 return {
'Pixmap' : os.path.split(os.path.abspath(__file__))[0]+
'/icons/dropdown_list/HelixShapeRebar.svg',
126 'MenuText': QT_TRANSLATE_NOOP(
"RebarAddon",
"Helical Rebar"),
127 'ToolTip' : QT_TRANSLATE_NOOP(
"RebarAddon",
"Creates a Helical bar reinforcement from the selected face of the Structural element.")}
130 if FreeCADGui.ActiveDocument:
143 FreeCADGui.addCommand(
'Arch_Rebar_Stirrup',
StirrupTool())
148 RebarCommands = [
"Arch_Rebar_Straight",
"Arch_Rebar_UShape",
"Arch_Rebar_LShape",
"Arch_Rebar_Stirrup",
"Arch_Rebar_BentShape",
"Arch_Rebar_Helical"]
def CommandHelicalRebar()
def CommandStraightRebar()
def CommandBentShapeRebar()