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

85 lines
4.8 KiB
HTML

<html><head><title>Arch Add/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 Add/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_Add"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Add.png" class="image"><img alt="Arch Add.png" src="32px-Arch_Add.png" width="32" height="32" srcset="/wiki/images/thumb/d/d2/Arch_Add.png/48px-Arch_Add.png 1.5x, /wiki/images/d/d2/Arch_Add.png 2x" /></a> Arch Add</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven">Arch → Add
</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_Remove.html" title="Arch Remove">Arch Remove</a>
</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_Add"><span class="tocnumber">1</span> <span class="toctext">Arch Add</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="#Scripting"><span class="tocnumber">4</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 Add tool allows you to do 4 kinds of operations:
</p>
<ul><li> Add <a href="Part_Module.html" title="Part Module">shape</a>-based objects to an Arch component, such as a <a href="Arch_Wall.html" title="Arch Wall">wall</a> or <a href="Arch_Structure.html" title="Arch Structure">structure</a>. These objects make then part of the Arch component, and allow you to modify its shape but keeping its base properties such as width and height</li>
<li> Add Arch components, such as a <a href="Arch_Wall.html" title="Arch Wall">walls</a> or <a href="Arch_Structure.html" title="Arch Structure">structures</a>, to a group-based arch object such as <a href="Arch_Floor.html" title="Arch Floor">floors</a>.</li>
<li> Add <a href="Arch_Axis.html" title="Arch Axis">axis systems</a> to <a href="Arch_Structure.html" title="Arch Structure">structural objects</a></li>
<li> Add objects to <a href="Arch_SectionPlane.html" title="Arch SectionPlane">section planes</a></li></ul>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Add_example.jpg" class="image"><img alt="Arch Add example.jpg" src="640px-Arch_Add_example.jpg" width="640" height="266" srcset="/wiki/images/2/28/Arch_Add_example.jpg 1.5x" /></a>
</p><p>In the above image, a box is being added to a wall.
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)</li>
<li> Press 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_Add.png" class="image"><img alt="Arch Add.png" src="16px-Arch_Add.png" width="16" height="16" srcset="/wiki/images/thumb/d/d2/Arch_Add.png/24px-Arch_Add.png 1.5x, 32px-Arch_Add.png 2x" /></a> <b>Add</b></span> button</li></ol>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The Add tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following function:
</p>
<pre>addComponents (objectsList,hostObject) </pre>
<ul><li> Adds the given object or the objects from the given list as components to the given host Object. Use this for example to add windows to a wall, or to add walls to a floor.</li>
<li> Returns nothing.</li></ul>
<p>Example:
</p>
<pre>import FreeCAD, Arch, Draft, Part
line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
Arch.addComponents(box,wall) </pre>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Arch_Add/en&amp;oldid=263296">http://www.freecadweb.org/wiki/index.php?title=Arch_Add/en&amp;oldid=263296</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>