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

117 lines
7.5 KiB
HTML

<html><head><title>Macro Dxf To Shape</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 Dxf To Shape</h1></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><div id="itsfree" style="text-align:center;color:black;background:#FDE0A8;margin:1em 7em;padding:0.5em 2em;border:2px solid #FF5706;">Documentation not finished, not translate thanks</div>
<p><br />
</p>
<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_Dxf_To_Shape"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Dxf_To_Shape.png" class="image"><img alt="Macro Dxf To Shape.png" src="32px-Macro_Dxf_To_Shape.png" width="32" height="32" srcset="/wiki/images/thumb/f/f4/Macro_Dxf_To_Shape.png/48px-Macro_Dxf_To_Shape.png 1.5x, Macro_Dxf_To_Shape.png 2x" /></a> Macro Dxf To Shape</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Description
</th></tr>
<tr>
<td class="ctEven left macro-description">Macro utility for create unique wire with many wires macro.
</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">01.00
</td></tr>
<tr>
<th class="ctOdd">Date last modification
</th></tr>
<tr>
<td class="ctEven macro-date">2016-11-21
</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_Dxf_To_Shape"><span class="tocnumber">1</span> <span class="toctext">Macro Dxf To Shape</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="#Script"><span class="tocnumber">4</span> <span class="toctext">Script</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Example"><span class="tocnumber">5</span> <span class="toctext">Example</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Links"><span class="tocnumber">6</span> <span class="toctext">Links</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Version"><span class="tocnumber">7</span> <span class="toctext">Version</span></a></li>
</ul>
</div>
</td></tr>
</table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>Macro utility for create unique wire with many wires, the type wire created is selected to MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, Bezier curve.
</p>
<h2><span class="mw-headline" id="Use">Use</span></h2>
<p>Principe&#160;:
</p>
<ul><li>downgrade the compound line for work with single line</li>
<li>first line discretize the line (precision on choice)</li>
<li>the linetest is created on choice MakeWire, Bspline, BsplineCourve, Polygon, BezCurve (display the orientation </li></ul>
<p><font color="#008000">Begin</font> - <font color="#FF0000">End</font> (Reversed Forward)
</p>
<ul><li>test is good .. then <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save DataT</span></font> coordinates in file (and Del Test If you want)</li>
<li>second line same first line and accord end to begin ....</li>
<li>test is good .. then <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save DataT</span></font> coordinates in file (and Del Test If you want)</li>
<li> ...... tests finished</li>
<li> <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Read DataT</span></font> saved in on unique wire with the type line selected</li></ul>
<p>you can also test one sweep, force reverse, close wire, create points, cloud ...
</p><p>you can also <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save</span></font> the file in disk
</p><p>( <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save DataT</span></font>, <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Read DataT</span></font>, <font color="#008000"> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Reset DataT</span></font> Are the Temporary working file)
</p><p><br />
</p>
<div style="clear:both"></div>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_DXF_To_Shape_00.png" class="image" title="Macro_Dxf_To_Shape"><img alt="Macro_Dxf_To_Shape" src="Macro_DXF_To_Shape_00.png" width="480" height="968" /></a>
</p>
<div style="clear:both"></div>
<p><br />
</p>
<h2><span class="mw-headline" id="Script">Script</span></h2>
<p>The icon for you toolBar <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Dxf_To_Shape.png" class="image"><img alt="Macro Dxf To Shape.png" src="Macro_Dxf_To_Shape.png" width="64" height="64" /></a> copy in same directory to the macro
</p><p><a href="Customize_Toolbars.html" title="Customize Toolbars">How to Customize Toolbars</a>, <a href="How_to_install_macros.html" title="How to install macros">How to install macros</a>
</p><p>The script to github <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/0596ad522b151806d5970586a5051e4b">Macro_DXF_to_Shape.FCMacro</a>
</p>
<h2><span class="mw-headline" id="Example">Example</span></h2>
<p>Here convert Wire (multi lines) in BsplineCurve
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Dxf_To_Shape_Convert_Wire_To_BSplineCurve.gif" class="image"><img alt="Macro Dxf To Shape Convert Wire To BSplineCurve.gif" src="Macro_Dxf_To_Shape_Convert_Wire_To_BSplineCurve.gif" width="855" height="635" /></a>
</p><p>here with selected face
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Dxf_To_Shape_Convert_Wire_To_BSplineCurve02.gif" class="image"><img alt="Macro Dxf To Shape Convert Wire To BSplineCurve02.gif" src="Macro_Dxf_To_Shape_Convert_Wire_To_BSplineCurve02.gif" width="855" height="635" /></a>
</p>
<h2><span class="mw-headline" id="Links">Links</span></h2>
<p>Mes macros sur <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a">Github</a>
</p>
<h2><span class="mw-headline" id="Version">Version</span></h2>
<ul><li>21/11/2016 ver 00.00&#160;:</li></ul>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_Dxf_To_Shape&amp;oldid=253524">http://www.freecadweb.org/wiki/index.php?title=Macro_Dxf_To_Shape&amp;oldid=253524</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>