Arch Rebar: Difference between revisions

From FreeCAD Documentation
(Created page with "<translate> {{GuiCommand|Name=Arch_Rebar|Workbenches=Arch|MenuLocation=Arch -> Rebar|Shortcut=R B|SeeAlso=Arch Structure}} ==Description== The Rebar tool...")
 
No edit summary
 
(63 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
{{GuiCommand|Name=Arch_Rebar|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Rebar|Shortcut=R B|SeeAlso=[[Arch Structure]]}}


<!--T:1-->
==Description==
{{Docnav
|[[Reinforcement_FootingRebars|FootingRebars]]
|[[Arch_CurtainWall|CurtainWall]]
|[[Arch_Workbench|Arch]]
|IconL=Reinforcement_FootingRebars.svg
|IconR=Arch_CurtainWall.svg
|IconC=Workbench_Arch.svg
}}


<!--T:27-->
The Rebar tool allows you to place [http://en.wikipedia.org/wiki/Rebar reinforcing bars] inside [[Arch Structure]] objects. Rebar objects are based on 2D profiles such as [[Sketcher Module|sketches]] or [[Draft Module|draft objects]], that must be drawn on a face of a structure object. You can then adjust the configuration of the rebars, such as the number and diameter of the bars, or the offset distance between the two ends of the structural element.
{{Docnav
|[[Reinforcement_FootingRebars|FootingRebars]]
|[[Reinforcement_BillOfMaterial|BillOfMaterial]]
|[[Reinforcement_Workbench|Reinforcement]]
|IconL=Reinforcement_FootingRebars.svg
|IconR=Reinforcement_BillOfMaterial.svg
|IconC=Reinforcement_Workbench.svg
}}


<!--T:23-->
{{GuiCommand
|Name=Arch Rebar
|MenuLocation=Arch → Rebar tools → Custom Rebar<br>3D/BIM → Reinforcement tools → Custom Rebar
|Workbenches=[[Arch_Workbench|Arch]], [[BIM_Workbench|BIM]], [[Reinforcement_Workbench|Reinforcement]]
|Shortcut={{KEY|R}} {{KEY|B}}
|SeeAlso=[[Arch_Structure|Arch Structure]]
}}

==Description== <!--T:2-->

<!--T:3-->
The [[Arch_Rebar|Arch Rebar]] tool allows you to place [http://en.wikipedia.org/wiki/Rebar reinforcing bars] inside [[Arch Structure|Arch Structure]] objects.

<!--T:25-->
The [[Arch_Rebar|Arch Rebar]] tool is also integrated into [[BIM_Workbench|BIM Workbench]].

<!--T:20-->
Rebar objects are based on 2D profiles such as [[Draft Workbench|Draft objects]] and [[Sketcher Workbench|Sketches]], that must be drawn on a face of the structural object. After creation you can adjust the properties of the rebar, including the number and diameter of the bars, and the offset distance between them and the faces of the structural element.

</translate>
[[Image:Arch Rebar example.jpg|400px]]
[[Image:Arch Rebar example.jpg|400px]]
<translate>
<!--T:5-->
{{Caption|Structural object with two sketches drawn on its faces, which are then turned into two sets of rebar objects}}


==Usage== <!--T:6-->
The above image shows a structural object, where two sketches are drawn, defining two bar diagrams. These two sketches are then turned into rebar objects.


<!--T:7-->
==How to use==
# Switch to the [[Image:Workbench_Arch.svg|16px]] [[Arch Workbench]]
# Create an {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch Structure|Arch Structure]]}} element.
# Switch to the [[Image:Workbench_Sketcher.svg|16px]] [[Sketcher Workbench|Sketcher Workbench]].
# Select one face of the structural element.
# Press the {{Button|[[Image:Sketcher NewSketch.svg|16px]] [[Sketcher NewSketch|New Sketch]]}} button to start a new sketch on the selected face.
# Draw the diagram of your bar.
# Press the {{Button|[[Image:Sketcher LeaveSketch.svg|16px]] [[Sketcher LeaveSketch|Leave Sketch]]}} button to finish.
# Switch back to the [[Image:Workbench_Arch.svg|16px]] [[Arch Workbench]].
# Select the sketch you just drew.
# Press the {{Button|[[Image:Arch Rebar.svg|16px]] [[Arch Rebar|Arch Rebar]]}} button, or press {{KEY|R}} then {{KEY|B}} keys.
# Adjust the desired properties (your rebar might not appear immediately, if some of the properties create an impossible situation, such as the bar diameter being 0, or the offset distances being bigger than the length of the structural element).


<!--T:24-->
# Create a [[Arch Structure|structure]] element
Although normally a rebar is used inside an Arch Structure, since FreeCAD 0.19 the rebar can be created outside of any host object. To host a rebar inside an object, you just need to set its {{PropertyData|Host}}.
# Switch to the [[Sketcher Workbench]]
# Select one face of the structural element
# Press the {{KEY|[[Image:Sketcher NewSketch.png|16px]] [[Sketcher NewSketch|New Sketch]]}} button to start a new sketch on the selected face
# Draw the diagram of your bar
# Press the {{KEY|[[Image:Sketcher LeaveSketch.png|16px]] [[Sketcher LeaveSketch|Leave Sketch]]}} button to finish
# Switch back to the [[Arch Workbench]]
# Select the sketch you just drew
# Press the {{KEY|[[Image:Arch Rebar.png|16px]] [[Arch Rebar]]}} button, or press {{KEY|R}} then {{KEY|B}} keys
# Adjust the desired properties (your rebar might not appear immediately, if some of the properties create an impossible situation, such as the bar diameter being 0, or the offset distances being bigger than the length of the structural element)


==Options==
==Options== <!--T:8-->


<!--T:9-->
* Rebars share the common properties and behaviours of all [[Arch Component|Arch Components]]
* The rounding value is expressed in times the diameter. If your bar has a diameter of 5mm, a rounding value of 3 will create rounding at angles with a radius of 15mm.
* The rounding value is expressed in times the diameter. If your bar has a diameter of 5mm, a rounding value of 3 will create rounding at angles with a radius of 15mm.
* Default values for new rebars can be set in the Arch preferences settings.
* Default values for new rebars can be set in the Arch preferences settings.
Line 30: Line 75:
* The spacing value is calculated from the current amount of bars, and represents the distance between the axes of each bar. You must therefore subtract the bar diameter to obtain the size of the free space between bars.
* The spacing value is calculated from the current amount of bars, and represents the distance between the axes of each bar. You must therefore subtract the bar diameter to obtain the size of the free space between bars.


==Properties==
==Properties== <!--T:10-->


<!--T:11-->
* {{PropertyData|Amount}}: The amount of bars.
* {{PropertyData|Amount}}: The amount of bars.
* {{PropertyData|Diameter}}: The diameter of the bars.
* {{PropertyData|Diameter}}: The diameter of the bars.
Line 40: Line 86:
* {{PropertyData|Spacing}}: The distance between the axes of each bar.
* {{PropertyData|Spacing}}: The distance between the axes of each bar.


==Scripting==
==Scripting== <!--T:12-->


<!--T:26-->
The Rebar tool can by used in [[macros]] and from the python console by using the following function:
{{Emphasis|See also:}} [[Arch API|Arch API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].

<!--T:13-->
The Rebar tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following function:
</translate>
</translate>
{{Code|code=
<syntaxhighlight>
makeRebar (structure,sketch,[diameter],[amount],[offset])
Rebar = makeRebar(baseobj=None, sketch=None, diameter=None, amount=1, offset=None, name="Rebar")
}}
</syntaxhighlight>
<translate>
<translate>


<!--T:14-->
* Adds a Reinforcing Bar object to the given structural object, using the given sketch as profile.
* Creates a {{incode|Rebar}} object from the given {{incode|baseobj}}, which is an [[Arch Structure|Arch Structure]], and a {{incode|sketch}} as profile.
* If no diameter, amount or offset value is given, the default values from the Arch preferences settings are applied.
** {{incode|diameter}}, {{incode|amount}}, and {{incode|offset}} are used to define the characteristics of the bars.
* Returns the new Rebar object.
** If no {{incode|diameter}}, {{incode|amount}}, or {{incode|offset}} values are given, the default values from the [[Arch Preferences|Arch Preferences]] are used.


<!--T:15-->
Example:
Example:

</translate>
</translate>
{{Code|code=
<syntaxhighlight>
import FreeCAD, Arch, Sketcher, PArt
import FreeCAD, Arch, Part
struct = Arch.makeStructure(1,1,3)
sketch = FreeCAD.ActiveDocument.addObject('Sketcher::SketchObject','Sketch')
sketch.Support = (struct,["Face6"])
sketch.addGeometry(Part.Line(App.Vector(-0.4,0.4,0),App.Vector(0.4,0.4,0)))
Arch.makeRebar(structure,sketch)
</syntaxhighlight>


Structure = Arch.makeStructure(None, length=1000, width=1000, height=3000)
<languages/>
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()

p1 = FreeCAD.Vector(-400, 400, 0)
p2 = FreeCAD.Vector(400, 400, 0)
Sketch = FreeCAD.ActiveDocument.addObject('Sketcher::SketchObject', 'Sketch')
Sketch.MapMode = "FlatFace"
Sketch.Support = [(Structure, "Face6")]
Sketch.addGeometry(Part.LineSegment(p1, p2))
FreeCAD.ActiveDocument.recompute()

Rebar = Arch.makeRebar(Structure, Sketch, diameter=80, amount=7, offset=50)
Rebar.OffsetStart = 100
Rebar.OffsetEnd = 100
FreeCAD.ActiveDocument.recompute()
}}
<translate>


<!--T:28-->
{{Docnav
|[[Reinforcement_FootingRebars|FootingRebars]]
|[[Reinforcement_BillOfMaterial|BillOfMaterial]]
|[[Reinforcement_Workbench|Reinforcement]]
|IconL=Reinforcement_FootingRebars.svg
|IconR=Reinforcement_BillOfMaterial.svg
|IconC=Reinforcement_Workbench.svg
}}

<!--T:19-->
{{Docnav
|[[Reinforcement_FootingRebars|FootingRebars]]
|[[Arch_CurtainWall|CurtainWall]]
|[[Arch_Workbench|Arch]]
|IconL=Reinforcement_FootingRebars.svg
|IconR=Arch_CurtainWall.svg
|IconC=Workbench_Arch.svg
}}

</translate>
[[Category:Reinforcement{{#translation:}}]]
{{Arch_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 10:53, 10 March 2024

Arch Rebar

Menu location
Arch → Rebar tools → Custom Rebar
3D/BIM → Reinforcement tools → Custom Rebar
Workbenches
Arch, BIM, Reinforcement
Default shortcut
R B
Introduced in version
-
See also
Arch Structure

Description

The Arch Rebar tool allows you to place reinforcing bars inside Arch Structure objects.

The Arch Rebar tool is also integrated into BIM Workbench.

Rebar objects are based on 2D profiles such as Draft objects and Sketches, that must be drawn on a face of the structural object. After creation you can adjust the properties of the rebar, including the number and diameter of the bars, and the offset distance between them and the faces of the structural element.

Structural object with two sketches drawn on its faces, which are then turned into two sets of rebar objects

Usage

  1. Switch to the Arch Workbench
  2. Create an Arch Structure element.
  3. Switch to the Sketcher Workbench.
  4. Select one face of the structural element.
  5. Press the New Sketch button to start a new sketch on the selected face.
  6. Draw the diagram of your bar.
  7. Press the Leave Sketch button to finish.
  8. Switch back to the Arch Workbench.
  9. Select the sketch you just drew.
  10. Press the Arch Rebar button, or press R then B keys.
  11. Adjust the desired properties (your rebar might not appear immediately, if some of the properties create an impossible situation, such as the bar diameter being 0, or the offset distances being bigger than the length of the structural element).

Although normally a rebar is used inside an Arch Structure, since FreeCAD 0.19 the rebar can be created outside of any host object. To host a rebar inside an object, you just need to set its DataHost.

Options

  • Rebars share the common properties and behaviours of all Arch Components
  • The rounding value is expressed in times the diameter. If your bar has a diameter of 5mm, a rounding value of 3 will create rounding at angles with a radius of 15mm.
  • Default values for new rebars can be set in the Arch preferences settings.
  • If a direction vector is not specified, the direction and distance along which the bars will spread is calculated automatically from the host structural object, by taking the normal direction of the base sketch, and taking its intersection with the structural object. If you specify a direction vector, the length of that vector will also be taken into account.
  • The spacing value is calculated from the current amount of bars, and represents the distance between the axes of each bar. You must therefore subtract the bar diameter to obtain the size of the free space between bars.

Properties

  • DataAmount: The amount of bars.
  • DataDiameter: The diameter of the bars.
  • DataDirection: The direction (and length) along which the bars must spread. If the value is (0,0,0), the direction is calculated automatically from the host structural object.
  • DataOffset Start: The offset distance between the border of the structural object and the first bar.
  • DataOffset End: The offset distance between the border of the structural object and the last bar.
  • DataRounding: A rounding value to be applied to the corners of the bars, expressed in times the diameter.
  • DataSpacing: The distance between the axes of each bar.

Scripting

See also: Arch API and FreeCAD Scripting Basics.

The Rebar tool can be used in macros and from the Python console by using the following function:

Rebar = makeRebar(baseobj=None, sketch=None, diameter=None, amount=1, offset=None, name="Rebar")
  • Creates a Rebar object from the given baseobj, which is an Arch Structure, and a sketch as profile.
    • diameter, amount, and offset are used to define the characteristics of the bars.
    • If no diameter, amount, or offset values are given, the default values from the Arch Preferences are used.

Example:

import FreeCAD, Arch, Part

Structure = Arch.makeStructure(None, length=1000, width=1000, height=3000)
Structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()

p1 = FreeCAD.Vector(-400, 400, 0)
p2 = FreeCAD.Vector(400, 400, 0)
Sketch = FreeCAD.ActiveDocument.addObject('Sketcher::SketchObject', 'Sketch')
Sketch.MapMode = "FlatFace"
Sketch.Support = [(Structure, "Face6")]
Sketch.addGeometry(Part.LineSegment(p1, p2))
FreeCAD.ActiveDocument.recompute()

Rebar = Arch.makeRebar(Structure, Sketch, diameter=80, amount=7, offset=50)
Rebar.OffsetStart = 100
Rebar.OffsetEnd = 100
FreeCAD.ActiveDocument.recompute()