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...")
 
(Marked this version for translation)
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
{{GuiCommand|Name=Arch_Rebar|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Rebar|Shortcut=R B|SeeAlso=[[Arch Structure]]}}
{{GuiCommand|Name=Arch_Rebar|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Rebar|Shortcut=R B|SeeAlso=[[Arch Structure]]}}


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


<!--T:3-->
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.
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.


<!--T:4-->
[[Image:Arch Rebar example.jpg|400px]]
[[Image:Arch Rebar example.jpg|400px]]


<!--T:5-->
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.
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.


==How to use==
==How to use== <!--T:6-->


<!--T:7-->
# Create a [[Arch Structure|structure]] element
# Create a [[Arch Structure|structure]] element
# Switch to the [[Sketcher Workbench]]
# Switch to the [[Sketcher Workbench]]
Line 23: Line 28:
# 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)
# 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-->
* 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 36:
* 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 47:
* {{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:13-->
The Rebar tool can by used in [[macros]] and from the python console by using the following function:
The Rebar tool can by used in [[macros]] and from the python console by using the following function:
</translate>
</translate>
Line 49: Line 57:
<translate>
<translate>


<!--T:14-->
* Adds a Reinforcing Bar object to the given structural object, using the given sketch as profile.
* Adds a Reinforcing Bar object to the given structural object, using the given sketch as profile.
* If no diameter, amount or offset value is given, the default values from the Arch preferences settings are applied.
* If no diameter, amount or offset value is given, the default values from the Arch preferences settings are applied.
* Returns the new Rebar object.
* Returns the new Rebar object.


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

Revision as of 15:27, 22 February 2014

Arch_Rebar

Menu location
Arch -> Rebar
Workbenches
Arch
Default shortcut
R B
Introduced in version
-
See also
Arch Structure

Description

The Rebar tool allows you to place reinforcing bars inside Arch Structure objects. Rebar objects are based on 2D profiles such as sketches or 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.

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.

How to use

  1. Create a structure element
  2. Switch to the Sketcher Workbench
  3. Select one face of the structural element
  4. Press the New Sketch button to start a new sketch on the selected face
  5. Draw the diagram of your bar
  6. Press the Leave Sketch button to finish
  7. Switch back to the Arch Workbench
  8. Select the sketch you just drew
  9. Press the Arch Rebar button, or press R then B keys
  10. 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

  • 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

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

 makeRebar (structure,sketch,[diameter],[amount],[offset])
  • Adds a Reinforcing Bar object to the given structural object, using the given sketch as profile.
  • If no diameter, amount or offset value is given, the default values from the Arch preferences settings are applied.
  • Returns the new Rebar object.

Example:

 import FreeCAD, Arch, Sketcher, 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)