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

76 lines
5.4 KiB
HTML

<html><head><title>Draft AutoGroup</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Draft AutoGroup</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="Draft_AutoGroup"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_AutoGroup.png" class="image"><img alt="Draft AutoGroup.png" src="32px-Draft_AutoGroup.png" width="32" height="32" srcset="/wiki/images/thumb/8/8c/Draft_AutoGroup.png/48px-Draft_AutoGroup.png 1.5x, /wiki/images/8/8c/Draft_AutoGroup.png 2x" /></a> Draft AutoGroup</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven">Draft → Utilities → AutoGroup
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven"><a href="Draft_Module.html" title="Draft Module">Draft</a>, <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">
</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="#Draft_AutoGroup"><span class="tocnumber">1</span> <span class="toctext">Draft AutoGroup</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="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</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><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_AutoGroup_example.jpg" class="image"><img alt="Draft AutoGroup example.jpg" src="Draft_AutoGroup_example.jpg" width="729" height="364" /></a>
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>This tool allows to set a Group, or derivated like <a href="Draft_VisGroup.html" title="Draft VisGroup">Draft VisGroup</a>, <a href="Arch_Site.html" title="Arch Site">Arch Site</a>, <a href="Arch_Building.html" title="Arch Building">Arch Building</a> or <a href="Arch_Floor.html" title="Arch Floor">Arch Floor</a>, as Active auto-group. When an auto-group is set, all new objects created in <a href="Draft_Workbench.html" class="mw-redirect" title="Draft Workbench">Draft Workbench</a> or <a href="Arch_Workbench.html" class="mw-redirect" title="Arch Workbench">Arch Workbench</a> will be placed into that group.
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Select menu Draft → Utilities → <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_AutoGroup.png" class="image"><img alt="Draft AutoGroup.png" src="16px-Draft_AutoGroup.png" width="16" height="16" srcset="/wiki/images/thumb/8/8c/Draft_AutoGroup.png/24px-Draft_AutoGroup.png 1.5x, 32px-Draft_AutoGroup.png 2x" /></a> <a class="mw-selflink selflink">AutoGroup</a></span>, or click the autogroup button on the toolbar, or right-click a Group object in the tree view → Utilities → <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_AutoGroup.png" class="image"><img alt="Draft AutoGroup.png" src="16px-Draft_AutoGroup.png" width="16" height="16" srcset="/wiki/images/thumb/8/8c/Draft_AutoGroup.png/24px-Draft_AutoGroup.png 1.5x, 32px-Draft_AutoGroup.png 2x" /></a> <a class="mw-selflink selflink">AutoGroup</a></span></li>
<li> Choose the desired group in the drop-down box</li></ol>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<ul><li> When AutoGroup is set, the button turns green, it means autogrouping is activated. You can click on it to change the group or unset.</li>
<li> When autogrouping is active, any new Draft or Arch object created will be placed in that group (except when Draft construction mode is on, in which case it goes to the construction group).</li>
<li> This only works when creating Draft or Arch objects from the GUI buttons. Not when using them from python. This is so it is still possible for python scripts to do the grouping they want, regardless of what autogrouping says.</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>In python scripts, using Draft autogrouping is simply done with the command below:
</p>
<pre>import Draft
Draft.autogroup(object) </pre>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Draft_AutoGroup&amp;oldid=279950">http://www.freecadweb.org/wiki/index.php?title=Draft_AutoGroup&amp;oldid=279950</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>