91 lines
5.3 KiB
HTML
91 lines
5.3 KiB
HTML
<html><head><title>Macro Constraint Draft</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Macro Constraint Draft</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" width="100%" style="float: right; width: 230px; margin-left: 10px;">
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Constraint_Draft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Text-x-python.png" class="image"><img alt="Text-x-python.png" src="32px-Text-x-python.png" width="32" height="32" srcset="/wiki/images/2/2c/Text-x-python.png 1.5x" /></a> Constraint Draft</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">Create simulation using the <a href="Expressions.html" title="Expressions">expressions</a> for link all objects.
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Author
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-author"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Mario52" title="User:Mario52">Mario52</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Links
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Macros_recipes.html" title="Macros recipes">Macros recipes</a><br /><a href="How_to_install_macros.html" title="How to install macros">How to install macros</a><br /><a href="Customize_Toolbars.html" title="Customize Toolbars">How to customize toolbars</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Version
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-version">1.0
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2017-04-19
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">
|
|
</th></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="#Constraint_Draft"><span class="tocnumber">1</span> <span class="toctext">Constraint Draft</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="#Uses"><span class="tocnumber">3</span> <span class="toctext">Uses</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Script"><span class="tocnumber">4</span> <span class="toctext">Script</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Rotation_with_FreeCAD_tools"><span class="tocnumber">5</span> <span class="toctext">Rotation with FreeCAD tools</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Link"><span class="tocnumber">6</span> <span class="toctext">Link</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr>
|
|
</table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>Simple example animation Draft wires by use the <a href="Expressions.html" title="Expressions">expressions</a> for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Draft00.gif" class="image" title="Animation use the constraint expression"><img alt="Animation use the constraint expression" src="Constraint_Draft00.gif" width="625" height="244" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Uses">Uses</span></h2>
|
|
<p>Download the file example <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/download/file.php?id=36559">Constraint_Draft00.FCStd</a>, open it in FreeCAD
|
|
</p>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p>Select the <b>Line005_with_Code</b> object in the Combo View Select Data tab > Memo code > Code for rotation > <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> ... </span>
|
|
</p><p>Select the complete code and paste in the Python Console
|
|
</p><p>(If do not have the Python console: Menu > View > Panels > select Python console)
|
|
</p><p>How copy the code snippet
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Draft_Code01.gif" class="image" title="How copy the animation code"><img alt="How copy the animation code" src="Constraint_Draft_Code01.gif" width="483" height="709" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Rotation_with_FreeCAD_tools">Rotation with FreeCAD tools</span></h2>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Constraint_Draft01.gif" class="image" title="Rotation with FreeCAD tools"><img alt="Rotation with FreeCAD tools" src="Constraint_Draft01.gif" width="672" height="492" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Link">Link</span></h2>
|
|
<p>The forum discussion <a rel="nofollow" class="external text" href="https://www.forum.freecadweb.org/viewtopic.php?f=22&t=21778&sid=28247565010ecdef0aa4f5c69e58f672">Sketch Feature to create linkage mechanism simulator</a>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_Constraint_Draft&oldid=240006">http://www.freecadweb.org/wiki/index.php?title=Macro_Constraint_Draft&oldid=240006</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> |