|
Menu location |
---|
3D/BIM → Reinforcement tools → Custom Rebar |
Workbenches |
BIM, Reinforcement |
Default shortcut |
R B |
Introduced in version |
- |
See also |
None |
The Arch Rebar tool allows you to place reinforcing bars inside Arch Structure objects.
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
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 DadosHost.
An Arch Rebar object shares the common properties and behaviors of all Arch Components.
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")
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.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()