FreeCAD-Doc/localwiki/Arch_Rebar_Straight-en.html
2018-07-19 18:47:02 -05:00

130 lines
10 KiB
HTML

<html><head><title>Arch Rebar Straight/en</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Arch Rebar Straight/en</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Arch_Rebar_Straight"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Rebar_Straight.png" class="image"><img alt="Arch Rebar Straight.png" src="32px-Arch_Rebar_Straight.png" width="32" height="8" srcset="/wiki/images/thumb/6/69/Arch_Rebar_Straight.png/48px-Arch_Rebar_Straight.png 1.5x, /wiki/images/6/69/Arch_Rebar_Straight.png 2x" /></a> Arch Rebar Straight</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven">Arch → Rebar tools
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven"><a href="Arch_Module.html" title="Arch Module">Arch</a>
</td></tr>
<tr>
<th class="ctOdd">Default shortcut
</th></tr>
<tr>
<td class="ctEven">None
</td></tr>
<tr>
<th class="ctOdd">See also
</th></tr>
<tr>
<td class="ctEven"><a href="Arch_Rebar_UShape.html" title="Arch Rebar UShape">UShape Rebar</a>
</td></tr>
<tr>
<th class="ctOdd">&#160;
</th></tr>
<tr>
<td class="ctEven">This command is part of the <b>Reinforcement AddOn</b>, that you can install via menu Tools → Addons Manager
</td></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Arch_Rebar_Straight"><span class="tocnumber">1</span> <span class="toctext">Arch Rebar Straight</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Properties"><span class="tocnumber">4</span> <span class="toctext">Properties</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Scripting"><span class="tocnumber">5</span> <span class="toctext">Scripting</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>The <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Rebar_Straight.png" class="image"><img alt="Arch Rebar Straight.png" src="16px-Arch_Rebar_Straight.png" width="16" height="4" srcset="/wiki/images/thumb/6/69/Arch_Rebar_Straight.png/24px-Arch_Rebar_Straight.png 1.5x, 32px-Arch_Rebar_Straight.png 2x" /></a> Straight Rebar</span> tool allows user to create a straight reinforcing bar in the structural element.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:StraightRebar.png" class="image"><img alt="StraightRebar.png" src="800px-StraightRebar.png" width="800" height="450" srcset="/wiki/images/thumb/f/fd/StraightRebar.png/1200px-StraightRebar.png 1.5x, /wiki/images/f/fd/StraightRebar.png 2x" /></a>
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Create a <a href="Arch_Structure.html" title="Arch Structure">structure</a> element</li>
<li> Select any face of the structure</li>
<li> Then select <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Rebar_Straight.png" class="image"><img alt="Arch Rebar Straight.png" src="16px-Arch_Rebar_Straight.png" width="16" height="4" srcset="/wiki/images/thumb/6/69/Arch_Rebar_Straight.png/24px-Arch_Rebar_Straight.png 1.5x, 32px-Arch_Rebar_Straight.png 2x" /></a> Straight Rebar</span> from the rebar tools</li>
<li> A task panel will pop-out on the left side of the screen as shown below <a href="https://www.freecadweb.org/wiki/index.php?title=File:StraightRebarDialog.png" class="image"><img alt="StraightRebarDialog.png" src="250px-StraightRebarDialog.png" width="250" height="536" srcset="/wiki/images/a/ad/StraightRebarDialog.png 1.5x" /></a></li>
<li> Select the desired orientation</li>
<li> Give the inputs like front cover, right side cover, left side cover, bottom cover and diameter of the rebar</li>
<li> Select the mode of distribution either amount or spacing</li>
<li> If spacing is selected, a user can also opt for <a href="Custom_Spacing.html" title="Custom Spacing">custom spacing</a></li>
<li> Pick selected face is used to verify or change the face for rebar distribution</li>
<li> Click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Apply</span> to generate the rebars</li>
<li> Click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Cancel</span> to exit the task panel</li></ol>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Orientation</b>: It decides the orientation of the rebar (like a bottom, top, right and left).</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Front Cover</b>: The distance between rebar and selected face.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Right Cover</b>: The distance between the right end of the rebar to right face of the structure.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Left Cover</b>: The distance between the left end of the rebar to the left face of the structure.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Cover along</b>: These property facilities the user to specify either top or bottom cover.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Bottom Cover</b>: The distance between rebar from the bottom face of the structure.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Top Cover</b>: The distance between rebar from the top face of the structure.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Amount</b>: The amount of rebars.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Spacing</b>: The distance between the axes of each bar.</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Rebar_Straight.png" class="image"><img alt="Arch Rebar Straight.png" src="16px-Arch_Rebar_Straight.png" width="16" height="4" srcset="/wiki/images/thumb/6/69/Arch_Rebar_Straight.png/24px-Arch_Rebar_Straight.png 1.5x, 32px-Arch_Rebar_Straight.png 2x" /></a> Straight Rebar</span> tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following function:
</p><p><b>1. When orientation of straight rebar is horizontal:</b>
</p>
<pre>makeStraightRebar(FrontCover, CoverAlong, RightCover, LeftCover, Diameter, AmountSpacingCheck, AmountSpacingValue, Orientation = "Horizontal", Structure, Facename) </pre>
<p>Note:
</p>
<ul><li> Type of CoverAlong argument is a tuple. Syntax: <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">(&lt;Along&gt;, &lt;Value&gt;)</span>. Here we have horizontal orientation so we can pass <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Top Side</span> and <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Bottom Side</span> to &lt;Along&gt; arguments.</li></ul>
<p>For eg. <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">("Top Side", 20)</span> and <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> ("Bottom Side", 20)</span>
</p><p><b>2. When orientation of straight rebar is vertical:</b>
</p>
<pre>makeStraightRebar(FrontCover, CoverAlong, TopCover, BottomCover, Diameter, AmountSpacingCheck, AmountSpacingValue, Orientation = "Horizontal", Structure, Facename) </pre>
<p>Note:
</p>
<ul><li> Type of CoverAlong argument is a tuple. Syntax: <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">(&lt;Along&gt;, &lt;Value&gt;)</span>. Here we have vertical orientation so we can pass <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Left Side</span> and <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Right Side</span> to &lt;Along&gt; arguments.</li></ul>
<p>For eg. <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">("Left Side", 20)</span> and <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> ("Right Side", 20)</span>
</p><p><br />
</p>
<hr />
<p><br />
</p>
<ul><li> Adds a Straight reinforcing bar object to the given structural object.</li>
<li> If no Structure and Facename is given, it will take user selected face as input.</li>
<li> Here CoverAlong argument is having type tuple. </li>
<li> Returns the new Rebar object.</li></ul>
<p>Example:
Creating Straight rebar.
</p>
<pre>import Arch, StraightRebar
structure = Arch.makeStructure(length=1000.0, width=1000.0, height=400.0)
structure.ViewObject.Transparency = 80
FreeCAD.ActiveDocument.recompute()
rebar = StraightRebar.makeStraightRebar(20, ("Bottom Side", 20), 20, 20, 8, True, 10, "Horizontal", structure, "Face1") </pre>
<p>Changing properties of Straight rebar.
</p>
<pre>import StraightRebar
StraightRebar.editStraightRebar(rebar, 25, ("Top Side", 20), 20, 20, 8, True, 10, "Horizontal") </pre>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Arch_Rebar_Straight/en&amp;oldid=250172">http://www.freecadweb.org/wiki/index.php?title=Arch_Rebar_Straight/en&amp;oldid=250172</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>