FreeCAD-Doc/localwiki/Arch_Window.html
2018-07-08 12:11:49 -05:00

193 lines
19 KiB
HTML

<html><head><title>Arch Window</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 Window</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Arch_Window"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Window.png" class="image"><img alt="Arch Window.png" src="32px-Arch_Window.png" width="32" height="32" srcset="/wiki/images/thumb/a/a4/Arch_Window.png/48px-Arch_Window.png 1.5x, /wiki/images/a/a4/Arch_Window.png 2x" /></a> Arch Window</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven">Arch → Window
</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">W I
</td></tr>
<tr>
<th class="ctOdd">See also
</th></tr>
<tr>
<td class="ctEven"><a href="Arch_Wall.html" title="Arch Wall">Arch Wall</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_Window"><span class="tocnumber">1</span> <span class="toctext">Arch Window</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>
<ul>
<li class="toclevel-2 tocsection-3"><a href="#Using_a_preset"><span class="tocnumber">3.1</span> <span class="toctext">Using a preset</span></a></li>
<li class="toclevel-2 tocsection-4"><a href="#Creating_from_scratch"><span class="tocnumber">3.2</span> <span class="toctext">Creating from scratch</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-5"><a href="#Presets"><span class="tocnumber">4</span> <span class="toctext">Presets</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Building_components"><span class="tocnumber">5</span> <span class="toctext">Building components</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Options"><span class="tocnumber">6</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-1 tocsection-8"><a href="#Doors"><span class="tocnumber">7</span> <span class="toctext">Doors</span></a></li>
<li class="toclevel-1 tocsection-9"><a href="#Openings"><span class="tocnumber">8</span> <span class="toctext">Openings</span></a></li>
<li class="toclevel-1 tocsection-10"><a href="#Properties"><span class="tocnumber">9</span> <span class="toctext">Properties</span></a></li>
<li class="toclevel-1 tocsection-11"><a href="#Scripting"><span class="tocnumber">10</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 Window is a base object for all kinds of "embeddable" objects, such as windows, doors, etc... It is designed to be either independent, or "hosted" inside another component such as a wall. It has its own geometry, that can be made of several solid components (the window frame, or inner panels for example), and also defines a volume to be subtracted to host objects, in order to create an opening.
</p><p>Window objects are based on closed 2D objects, such as <a href="Draft_Rectangle.html" title="Draft Rectangle">Draft Rectangles</a> or <a href="Sketcher_Module.html" class="mw-redirect" title="Sketcher Module">Sketches</a>, that are used to define their inner components. The base 2D object must therefore contain several closed wires, that can be combined to form filled panels (one wire) or frames (several wires).
</p><p>The window tool features several <b>presets</b>, that allow to create full doors or windows from a list of parameters, without the need to create the base 2D objects and components manually. But windows can also be created from scratch, by drawing a base 2D object first.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Window_example.jpg" class="image"><img alt="Arch Window example.jpg" src="600px-Arch_Window_example.jpg" width="600" height="311" srcset="/wiki/images/0/08/Arch_Window_example.jpg 1.5x" /></a>
</p><p>In the above image, a window is constructed on top of a <a href="Draft_Rectangle.html" title="Draft Rectangle">Draft Rectangle</a>, then inserted into a <a href="Arch_Wall.html" title="Arch Wall">Wall</a>. <a href="Arch_Add.html" title="Arch Add">Adding</a> a window to a wall automatically cuts a correct opening in the host wall.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Window_example2.jpg" class="image"><img alt="Arch Window example2.jpg" src="600px-Arch_Window_example2.jpg" width="600" height="124" srcset="/wiki/images/thumb/1/13/Arch_Window_example2.jpg/900px-Arch_Window_example2.jpg 1.5x, /wiki/images/thumb/1/13/Arch_Window_example2.jpg/1200px-Arch_Window_example2.jpg 2x" /></a>
</p><p>The above image shows a more complex window being constructed on top of a sketch. When entering the window's edit mode, you can create different components, set their thickness, and select and assign wires from the sketch to them.
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<h3><span class="mw-headline" id="Using_a_preset">Using a preset</span></h3>
<ol><li> Optionally, select an Arch object. If no object is selected, the window will be inserted in the object under the mouse when placing the window.</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_Window.png" class="image"><img alt="Arch Window.png" src="16px-Arch_Window.png" width="16" height="16" srcset="/wiki/images/thumb/a/a4/Arch_Window.png/24px-Arch_Window.png 1.5x, 32px-Arch_Window.png 2x" /></a> <a class="mw-selflink selflink">Arch Window</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">W</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">I</span> keys</li>
<li> Select one of the presets in the list</li>
<li> Fill out the desired parameters</li>
<li> Press the <b>OK</b> button</li></ol>
<h3><span class="mw-headline" id="Creating_from_scratch">Creating from scratch</span></h3>
<ol><li> Optionally, select a face on the Arch object where you want the window to be incuded</li>
<li> Switch to the <a href="Sketcher_Module.html" class="mw-redirect" title="Sketcher Module">Sketcher Workbench</a></li>
<li> Create a new sketch</li>
<li> Draw one or more closed wires</li>
<li> Close the sketch</li>
<li> Switch back to the <a href="Arch_Module.html" title="Arch Module">Arch Workbench</a></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_Window.png" class="image"><img alt="Arch Window.png" src="16px-Arch_Window.png" width="16" height="16" srcset="/wiki/images/thumb/a/a4/Arch_Window.png/24px-Arch_Window.png 1.5x, 32px-Arch_Window.png 2x" /></a> <a class="mw-selflink selflink">Arch Window</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">W</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">I</span> keys</li>
<li> Enter Edit mode by double-clicking the window in the tree view, to adjust the window components</li></ol>
<h2><span class="mw-headline" id="Presets">Presets</span></h2>
<p>The following presets are available:
</p>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersDoorGlass.svg" class="image"><img alt="" src="ParametersDoorGlass.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Glass door
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersDoorSimple.svg" class="image"><img alt="" src="ParametersDoorSimple.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Simple door
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersWindowDouble.svg" class="image"><img alt="" src="ParametersWindowDouble.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Double-opening window
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersWindowFixed.svg" class="image"><img alt="" src="ParametersWindowFixed.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Fixed window
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersWindowSimple.svg" class="image"><img alt="" src="ParametersWindowSimple.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Single-opening window
</p>
</div>
</div></li>
<li class="gallerybox" style="width: 235px"><div style="width: 235px">
<div class="thumb" style="width: 230px;"><div style="margin:35px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ParametersWindowStash.svg" class="image"><img alt="" src="ParametersWindowStash.svg" width="200" height="120" /></a></div></div>
<div class="gallerytext">
<p>Sash-opening window
</p>
</div>
</div></li>
</ul>
<h2><span class="mw-headline" id="Building_components">Building components</span></h2>
<p>Windows can include 3 types of components: panels, frames and louvres. Panels and louvres are made from one closed wire, which gets extruded, while frames are made from 2 or more closed wire, where each one is extruded, then the smaller ones are subtracted from the biggest one. You can access, create, modify and delete components of a window in edit mode (double-click the window in the Tree view). The components have the following properties:
</p>
<ul><li> <b>Name</b>: A name for the component</li>
<li> <b>Type</b>: The type of component. Can be "Frame", "Glass panel", "Solid panel" or "Louvres"</li>
<li> <b>Wires</b>: A comma-separated list of wires the component is based on</li>
<li> <b>Thickness</b>: The extrusion thickness of the component</li>
<li> <b>Z Offset</b>: The distance between the component and its base 2D wire(s)</li>
<li> <b>Hinge</b>: This allows you to select an edge from the base 2D object, then set that edge as a hinge for this component and the next ones in the list</li>
<li> <b>Opening mode</b>: If you defined a hinge in this component or any other earlier in the list, setting the opening mode will allow the window to appear open or to display 2D opening symbols in plan or elevation. </li></ul>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_Window_options.jpg" class="image"><img alt="Arch Window options.jpg" src="600px-Arch_Window_options.jpg" width="600" height="410" srcset="/wiki/images/8/87/Arch_Window_options.jpg 1.5x" /></a>
</p>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<ul><li> Windows share the common properties and behaviours of all <a href="Arch_Component.html" title="Arch Component">Arch Components</a></li>
<li> If the <b>Auto-include</b>checkbox on the Window creation task panel is unchecked, the window won't be inserted into any host object on creation.</li>
<li> Add a selected window to a <a href="Arch_Wall.html" title="Arch Wall">wall</a> by selecting both, then pressing 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, /wiki/images/thumb/d/d2/Arch_Add.png/32px-Arch_Add.png 2x" /></a> <a href="Arch_Add.html" title="Arch Add">Arch Add</a></span> button.</li>
<li> Remove a selected window from a <a href="Arch_Wall.html" title="Arch Wall">wall</a> by selecting the window, then pressing 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_Remove.png" class="image"><img alt="Arch Remove.png" src="16px-Arch_Remove.png" width="16" height="16" srcset="/wiki/images/thumb/d/dc/Arch_Remove.png/24px-Arch_Remove.png 1.5x, /wiki/images/thumb/d/dc/Arch_Remove.png/32px-Arch_Remove.png 2x" /></a> <a href="Arch_Remove.html" title="Arch Remove">Arch Remove</a></span> button.</li>
<li> When using presets, it is often convenient to turn the "Near" <a href="Draft_Snap.html" title="Draft Snap">Draft Snap</a> on, so you can snap your window to an existing face.</li>
<li> The hole created by a window in its host object is determined by two properties: <b>Hole Depth</b> and <b>Hole Wire</b> (<span style="font-size:x-small;"><a href="Release_notes_0.17.html" title="Release notes 0.17">available in version 0.17</a></span></li></ul>
<p>). The Hole Wire number can be picked in the 3D view from the window's task panel available when double-clicking the window in the tree view
</p>
<ul><li> Windows can make use of <a href="Arch_MultiMaterial.html" title="Arch MultiMaterial">Multi-Materials</a>. The window will search in the attached Multi-Material for material layers with a same name for each of its window component, and use it if any is found. For example, a component named "OuterFrame" will search in the attached Multi-Material, for a material layer named "OuterFrame". If such material layer is found, its material will be attributed to the OuterFrame component. The thickness value of the material layer is disregarded.</li></ul>
<h2><span class="mw-headline" id="Doors">Doors</span></h2>
<p>Doors can be made easily with the window tool, you only need to draw the base of the inner wire touching the exterior wire like in the image below.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_door.jpg" class="image" title="Door"><img alt="Door" src="600px-Arch_door.jpg" width="600" height="327" srcset="/wiki/images/thumb/6/6c/Arch_door.jpg/900px-Arch_door.jpg 1.5x, /wiki/images/6/6c/Arch_door.jpg 2x" /></a>
</p>
<h2><span class="mw-headline" id="Openings">Openings</span></h2>
<p>Doors and windows can appear partially or fully open in the 3D model, or can display opening symbols both in plan and/or elevation. Consequently, these will also appear in extracted 2D views generated by <a href="Draft_Shape2DView.html" title="Draft Shape2DView">Draft Shape2DView</a> or <a href="TechDraw_Workbench.html" class="mw-redirect" title="TechDraw Workbench">TechDraw Workbench</a> or <a href="Drawing_Workbench.html" class="mw-redirect" title="Drawing Workbench">Drawing Workbench</a>. To obtain this, at least one of the window components must have a hinge and an opening mode defined (see the 'Building Components' section above). Then, using the <b>Opening</b>, <b>Symbol Plan</b> or <b>Symbol Elevation</b> properties, you can configure the appearance of the window:
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Arch_window_openings.png" class="image" title="A door showing from left to right the Symbol Plan, Symbol Elevation and Opening properties at work"><img alt="A door showing from left to right the Symbol Plan, Symbol Elevation and Opening properties at work" src="600px-Arch_window_openings.png" width="600" height="432" srcset="/wiki/images/thumb/b/bf/Arch_window_openings.png/900px-Arch_window_openings.png 1.5x, /wiki/images/b/bf/Arch_window_openings.png 2x" /></a>
</p>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Height</b>: The height of this window</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Width</b>: The width of this window</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Hole Depth</b>: The depth of the hole created by this window in its host object</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Hole Wire</b>: The number of the wire from the base object that is used to create a hole in the host object of this window. This value can be set graphically when double-clicking the window in the tree view. Setting a value of 0 will make the window automatically pick its biggest wire for the hole.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Window Parts</b>: A list of strings (5 strings per component, setting the component options above)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Louvre Width</b>: If any of the components is set to "Louvres", this property defines the size of the louvre elements</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Louvre Spacing</b>: If any of the components is set to "Louvres", this property defines the spacing between the louvre elements</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Opening</b>: All components that have their opening mode set, and provided a hinge is defined in them or in an earlier component in the list, will appear open by a percentage defined by this value</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Symbol Plan</b>: Shows 2D opening symbol in plan</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Symbol Elevation</b>: Shows 2D opening symbol in elevation</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The Window 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>makeWindow (obj,[name]) </pre>
<dl><dd>creates a window based on the given object</dd></dl>
<p>Example:
</p>
<pre>import Draft, Arch
rect = Draft.makeRectangle(length=2,height=4)
Arch.makeWindow(rect) </pre>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Arch_Window&amp;oldid=287285">http://www.freecadweb.org/wiki/index.php?title=Arch_Window&amp;oldid=287285</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>