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

188 lines
13 KiB
HTML

<html><head><title>Macro Connect And Sweep</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 Connect And Sweep</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="Macro_Connect_And_Sweep"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep.png" class="image"><img alt="Macro Connect And Sweep.png" src="32px-Macro_Connect_And_Sweep.png" width="32" height="32" srcset="/wiki/images/thumb/c/c9/Macro_Connect_And_Sweep.png/48px-Macro_Connect_And_Sweep.png 1.5x, /wiki/images/thumb/c/c9/Macro_Connect_And_Sweep.png/64px-Macro_Connect_And_Sweep.png 2x" /></a> Macro Connect And Sweep</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Description
</th></tr>
<tr>
<td class="ctEven left macro-description">This macro easily creates a connection between two 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">00.04
</td></tr>
<tr>
<th class="ctOdd">Date last modification
</th></tr>
<tr>
<td class="ctEven macro-date">2017-02-22
</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="#Macro_Connect_And_Sweep"><span class="tocnumber">1</span> <span class="toctext">Macro Connect And Sweep</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="#Use"><span class="tocnumber">3</span> <span class="toctext">Use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Images"><span class="tocnumber">4</span> <span class="toctext">Images</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Script"><span class="tocnumber">5</span> <span class="toctext">Script</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="#Version"><span class="tocnumber">7</span> <span class="toctext">Version</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Links"><span class="tocnumber">8</span> <span class="toctext">Links</span></a></li>
</ul>
</div>
</td></tr>
</table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_00.png" class="image" title="Macro_Connect_And_Sweep"><img alt="Macro_Connect_And_Sweep" src="480px-Macro_Connect_And_Sweep_00.png" width="480" height="360" srcset="/wiki/images/1/1c/Macro_Connect_And_Sweep_00.png 1.5x" /></a></div>
<div style="clear:both"></div>
<h2><span class="mw-headline" id="Use">Use</span></h2>
<p>Run the macro select your objects or points choice the form and parameters and click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Create</span>.
</p>
<div style="clear:both"></div>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_01.png" class="image" title="Macro_Connect_And_Sweep"><img alt="Macro_Connect_And_Sweep" src="Macro_Connect_And_Sweep_01.png" width="350" height="357" /></a></div>
<div style="clear:both"></div>
<h2><span class="mw-headline" id="Images">Images</span></h2>
<p>These files must be copied to your macros directory
</p><p>(For download&#160;: Click Right button op the image and click "Save Image as ...")
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_CE.png" class="image" title="Center"><img alt="Center" src="Macro_Connect_And_Sweep_CE.png" width="79" height="49" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_TL.png" class="image" title="Top left"><img alt="Top left" src="Macro_Connect_And_Sweep_TL.png" width="79" height="49" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_TR.png" class="image" title="Top rigth"><img alt="Top rigth" src="Macro_Connect_And_Sweep_TR.png" width="79" height="49" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_LL.png" class="image" title="Low left"><img alt="Low left" src="Macro_Connect_And_Sweep_LL.png" width="79" height="49" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_LR.png" class="image" title="Low rigth"><img alt="Low rigth" src="Macro_Connect_And_Sweep_LR.png" width="79" height="49" /></a>
</p><p>The icon for the toolbar <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep.png" class="image" title="Icon for the button"><img alt="Icon for the button" src="Macro_Connect_And_Sweep.png" width="65" height="64" /></a>
</p>
<h2><span class="mw-headline" id="Script">Script</span></h2>
<p><b> Macro_Connect_And_Sweep.FCMacro</b>
</p><p>Download the macro to Gits <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/3ec67a3711202dab69592ce53b938924"><b> Macro_Connect_And_Sweep.FCMacro</b></a>
</p>
<h2><span class="mw-headline" id="Example">Example</span></h2>
<p>Path and tubing with Macro_Connect_And_Sweep and <a rel="nofollow" class="external text" href="Macro_Repro_Wire.html">Macro_Repro_Wire</a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_ReproWire.png" class="image"><img alt="Macro ReproWire.png" src="32px-Macro_ReproWire.png" width="32" height="32" srcset="/wiki/images/thumb/a/a3/Macro_ReproWire.png/48px-Macro_ReproWire.png 1.5x, /wiki/images/a/a3/Macro_ReproWire.png 2x" /></a>
</p>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_02.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_02.png" width="400" height="241" srcset="/wiki/images/thumb/d/dd/Macro_Connect_And_Sweep_02.png/600px-Macro_Connect_And_Sweep_02.png 1.5x, /wiki/images/d/dd/Macro_Connect_And_Sweep_02.png 2x" /></a></div></div>
<div class="gallerytext">
<p>The sweep to work
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_03.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_03.png" width="400" height="241" srcset="/wiki/images/thumb/6/6e/Macro_Connect_And_Sweep_03.png/600px-Macro_Connect_And_Sweep_03.png 1.5x, /wiki/images/6/6e/Macro_Connect_And_Sweep_03.png 2x" /></a></div></div>
<div class="gallerytext">
<p>Select the two points choice your form, settings and execute the sweep
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_04.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_04.png" width="400" height="241" srcset="/wiki/images/thumb/9/93/Macro_Connect_And_Sweep_04.png/600px-Macro_Connect_And_Sweep_04.png 1.5x, /wiki/images/9/93/Macro_Connect_And_Sweep_04.png 2x" /></a></div></div>
<div class="gallerytext">
<p>Repeat the operation if needed
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_05.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_05.png" width="400" height="241" srcset="/wiki/images/thumb/1/17/Macro_Connect_And_Sweep_05.png/600px-Macro_Connect_And_Sweep_05.png 1.5x, /wiki/images/1/17/Macro_Connect_And_Sweep_05.png 2x" /></a></div></div>
<div class="gallerytext">
<p>select the border of cylinder and run the <a href="Macro_Repro_Wire.html" title="Macro Repro Wire">Macro_Repro_Wire</a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_ReproWire.png" class="image"><img alt="Macro ReproWire.png" src="32px-Macro_ReproWire.png" width="32" height="32" srcset="/wiki/images/thumb/a/a3/Macro_ReproWire.png/48px-Macro_ReproWire.png 1.5x, /wiki/images/a/a3/Macro_ReproWire.png 2x" /></a>
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_06.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_06.png" width="400" height="241" srcset="/wiki/images/thumb/a/a2/Macro_Connect_And_Sweep_06.png/600px-Macro_Connect_And_Sweep_06.png 1.5x, /wiki/images/a/a2/Macro_Connect_And_Sweep_06.png 2x" /></a></div></div>
<div class="gallerytext">
<p>the circle is created activate the Sweep tools <a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Sweep.png" class="image"><img alt="Part Sweep.png" src="32px-Part_Sweep.png" width="32" height="32" srcset="/wiki/images/thumb/7/79/Part_Sweep.png/48px-Part_Sweep.png 1.5x, /wiki/images/7/79/Part_Sweep.png 2x" /></a>
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_07.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_07.png" width="400" height="241" srcset="/wiki/images/thumb/a/a4/Macro_Connect_And_Sweep_07.png/600px-Macro_Connect_And_Sweep_07.png 1.5x, /wiki/images/a/a4/Macro_Connect_And_Sweep_07.png 2x" /></a></div></div>
<div class="gallerytext">
<p>Select the circle the path and execute the sweep
</p>
</div>
</div></li>
</ul>
</center>
<center>
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 435px"><div style="width: 435px">
<div class="thumb" style="width: 430px;"><div style="margin:44.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Connect_And_Sweep_08.png" class="image"><img alt="" src="400px-Macro_Connect_And_Sweep_08.png" width="400" height="241" srcset="/wiki/images/thumb/f/fb/Macro_Connect_And_Sweep_08.png/600px-Macro_Connect_And_Sweep_08.png 1.5x, /wiki/images/f/fb/Macro_Connect_And_Sweep_08.png 2x" /></a></div></div>
<div class="gallerytext">
<p>Easy&#160;?
</p>
</div>
</div></li>
</ul>
</center>
<p><br />
</p>
<h2><span class="mw-headline" id="Version">Version</span></h2>
<p>00.04 22/02/2017&#160;: upgrade the search path
</p><p>00.03 15/09/2016&#160;: add create pipe
</p><p>00.02 13/06/2016&#160;: add options choice angle path rectangle and ellipse
</p><p>00.01 07/06/2016&#160;: add option solid or not centring rectangle or not
</p><p>00.00 05/06/2016&#160;:
</p>
<h2><span class="mw-headline" id="Links">Links</span></h2>
<p>The forum discussion <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=22&amp;t=15833">Scripting point to point tubing</a>
</p><p>This macro is based to the microelly2 code see <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?t=7029#p56746">Looking for some helpful GUI-commands</a>
</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=Macro_Connect_And_Sweep&amp;oldid=240879">http://www.freecadweb.org/wiki/index.php?title=Macro_Connect_And_Sweep&amp;oldid=240879</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>