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

83 lines
3.0 KiB
HTML

<html><head><title>Std Edit</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Std Edit</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="Std_Edit"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_Edit.png" class="image"><img alt="Std Edit.png" src="32px-Std_Edit.png" width="32" height="32" srcset="/wiki/images/thumb/a/a1/Std_Edit.png/48px-Std_Edit.png 1.5x, /wiki/images/a/a1/Std_Edit.png 2x" /></a> Std Edit</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven"><a href="Std_Edit_Menu.html" title="Std Edit Menu">Edit</a> → Toggle Editmode
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven">All
</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="#Std_Edit"><span class="tocnumber">1</span> <span class="toctext">Std Edit</span></a>
<ul>
<li class="toclevel-2 tocsection-1"><a href="#Synopsis"><span class="tocnumber">1.1</span> <span class="toctext">Synopsis</span></a></li>
<li class="toclevel-2 tocsection-2"><a href="#Scripting"><span class="tocnumber">1.2</span> <span class="toctext">Scripting</span></a></li>
</ul>
</li>
</ul>
</div>
</td></tr></table>
<p><br />
</p><p><br />
</p>
<h4><span class="mw-headline" id="Synopsis">Synopsis</span></h4>
<p>This command allows to enter or leave the edit mode of a selected object. An object
must be either selected (then it enters edit mode) or in edit mode (then it leaves edit mode)
for this command to work.
</p><p>The behaviour that occurs when entering edit mode depends on the object type. Some object types
don't define any edit mode behaviour, in that case the standard behaviour (a transform widget)
is used.
</p><p>You can also perform the same action by double-clicking an object in the Tree View.
</p>
<h4><span class="mw-headline" id="Scripting">Scripting</span></h4>
<p>This enters edit mode of a determined object:
</p>
<pre>FreeCADGui.ActiveDocument.setEdit("myObjectName",0)
</pre>
<p>This closes the edit mode:
</p>
<pre>FreeCADGui.ActiveDocument.resetEdit()
</pre>
<p><br />
</p>
<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=Std_Edit&amp;oldid=103308">http://www.freecadweb.org/wiki/index.php?title=Std_Edit&amp;oldid=103308</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>