113 lines
6.2 KiB
HTML
113 lines
6.2 KiB
HTML
<html><head><title>GuiCommand model/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>GuiCommand model/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="Base_ExampleCommandModel"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Base ExampleCommandModel</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Sample → Command
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Wb1,Wb2
|
|
</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="https://www.freecadweb.org/wiki/index.php?title=Wb_Command&action=edit&redlink=1" class="new" title="Wb Command (page does not exist)">Wb Command</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="#Base_ExampleCommandModel"><span class="tocnumber">1</span> <span class="toctext">Base ExampleCommandModel</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>
|
|
<ul>
|
|
<li class="toclevel-2"><a href="#Create_Geometry"><span class="tocnumber">4.1</span> <span class="toctext"><span> Create Geometry </span></span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Example"><span class="tocnumber">6</span> <span class="toctext">Example</span></a></li>
|
|
<li class="toclevel-1 tocsection-6"><a href="#Scripting"><span class="tocnumber">7</span> <span class="toctext">Scripting</span></a></li>
|
|
<li class="toclevel-1 tocsection-7"><a href="#Other"><span class="tocnumber">8</span> <span class="toctext">Other</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>Insert here a short description of what the command does.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:FreeCAD05.png" class="image"><img alt="FreeCAD05.png" src="FreeCAD05.png" width="57" height="53" /></a> image
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><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:Std_Close.png" class="image"><img alt="Std Close.png" src="24px-Std_Close.png" width="24" height="24" srcset="/wiki/images/2/29/Std_Close.png 1.5x" /></a> <b>Command name</b></span> button.</li>
|
|
<li> Detailed steps as needed.</li>
|
|
<li> Set options and press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>.</li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<h3><span class="mw-headline" id="Create_Geometry"><span style="color: #485dc6; background-color: #d5dff9; font-weight: bold;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Box.png" class="image"><img alt="Part Box.png" src="24px-Part_Box.png" width="24" height="24" srcset="/wiki/images/thumb/a/a5/Part_Box.png/36px-Part_Box.png 1.5x, /wiki/images/thumb/a/a5/Part_Box.png/48px-Part_Box.png 2x" /></a> Create Geometry </span></span></h3>
|
|
<pre>{{TitleTasks|[[Image:Icon.png|24]] + Text}} (Code for the main title Tasks)
|
|
</pre>
|
|
<ul><li> <span style="background: #eec8aa; border: 1px solid #bbbbbb; padding: 0px 5px 1px 5px;"><small>TASKS</small> <b>Tasks</b></span> : Tasks</li></ul>
|
|
<pre>{{PropertyTasks|Tasks}} (Code of title Tasks)
|
|
</pre>
|
|
<ul><li> Options</li></ul>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<p><span style="color: #ffffff; background-color: #a0a0a0; font-size: 132%; font-weight: bold; margin-bottom: .3em; page-break-after: avoid;">Base</span>
|
|
</p>
|
|
<pre>{{TitleProperty|Base}} (Code for the main title Properties)
|
|
</pre>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Properties</b>: Properties</li></ul>
|
|
<pre>{{PropertyData|Properties}} (Code of title Data)
|
|
</pre>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Properties</b>: Properties</li></ul>
|
|
<pre>{{PropertyView|Properties}} (Code of title View)
|
|
</pre>
|
|
<h2><span class="mw-headline" id="Example">Example</span></h2>
|
|
<p>Optional
|
|
</p>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>The ExampleCommandModel 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><b>makeExampleCommandModel (Data, Data)</b>
|
|
</pre>
|
|
<ul><li> Creates a CommandModel using Data.</li>
|
|
<li> Returns the newly created object.</li></ul>
|
|
<p>Example:
|
|
</p>
|
|
<pre>import FreeCAD, Base
|
|
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)
|
|
</pre>
|
|
<h2><span class="mw-headline" id="Other">Other</span></h2>
|
|
<p>Optional
|
|
</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=GuiCommand_model/en&oldid=253412">http://www.freecadweb.org/wiki/index.php?title=GuiCommand_model/en&oldid=253412</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> |