264 lines
20 KiB
HTML
264 lines
20 KiB
HTML
<html><head><title>Macro FC Convert Lines</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 FC Convert Lines</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_FC_Convert_Lines"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines.png" class="image"><img alt="Macro FCConvertLines.png" src="32px-Macro_FCConvertLines.png" width="32" height="32" srcset="/wiki/images/thumb/e/e2/Macro_FCConvertLines.png/48px-Macro_FCConvertLines.png 1.5x, Macro_FCConvertLines.png 2x" /></a> Macro FC Convert Lines</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">This macro convert the object line, wire in line Dash, DashDot or DashDotDot with the dimensions given.
|
|
<p>.
|
|
</p>
|
|
</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.07
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2017-05-13
|
|
</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_FC_Convert_Lines"><span class="tocnumber">1</span> <span class="toctext">Macro FC Convert Lines</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="#The_files_to_copy_in_your_directory_with_the_macro_.2810_files_images.29"><span class="tocnumber">4</span> <span class="toctext">The files to copy in your directory with the macro (10 files 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="#Examples"><span class="tocnumber">6</span> <span class="toctext">Examples</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>This macro convert the object line, wire in line Dash, DashDot, DashDotDot, ZigZag, Hand with the dimensions given.
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_00.png" class="image" title="ConvertLines Dash, Dash dot, Dash dot dot"><img alt="ConvertLines Dash, Dash dot, Dash dot dot" src="400px-Macro_FCConvertLines_00.png" width="400" height="300" srcset="/wiki/images/thumb/e/e4/Macro_FCConvertLines_00.png/600px-Macro_FCConvertLines_00.png 1.5x, /wiki/images/e/e4/Macro_FCConvertLines_00.png 2x" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Use">Use</span></h2>
|
|
<p>Copy the macro in your macros folder and launch
|
|
FCConvertLines Gui
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_01.png" class="image" title="FCConvertLines Gui"><img alt="FCConvertLines Gui" src="Macro_FCConvertLines_01.png" width="364" height="655" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p>First section :
|
|
</p><p>Cut line (Checked by default)
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_02.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_02.png" width="364" height="655" /></a></div>
|
|
<ul><li> Select one or more lines in the 3D View</li>
|
|
<li> <b>SpinBox</b> : for enter number Cuts or cut to length ... (Default number cut suffix displayed "x Cut")</li>
|
|
<li> <b>Create L.</b> : if this checkbox is checked the line is created</li>
|
|
<li> <b>Dimension</b> : if this checkbox is checked the number tipped is on length the definition change by tree decimal and the suffix displayed is "x.000 Dim" </li>
|
|
<li> <b>Bicolor</b> : if this checkbox is checked the lines created are colored alternately Red White if is not checked the color is the color defined with the button <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Color</span></li>
|
|
<li> <b>Points</b> : if this checkbox is checked one point is created and the color is the color defined Bicolor or * The options <b>Options lines</b> are available</li></ul>
|
|
<p>Color
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
Second section :
|
|
</p><p>Type line : Dash
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_03.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_03.png" width="364" height="655" /></a></div>
|
|
<ul><li> The screen at the bottom of the macro change in line Dash</li>
|
|
<li> Select one or more lines in the 3D View</li>
|
|
<li> <b>Line A</b> : dimension of the dash (see <b>A</b> in the screen)</li>
|
|
<li> <b>Space B</b> : dimension of the space (see <b>B</b> in the screen)</li>
|
|
<li> The lines have created the configuration specifications set in options lines</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Third section :
|
|
</p><p>Type line : DashDot
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_04.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_04.png" width="364" height="655" /></a></div>
|
|
<ul><li> The screen at the bottom of the macro change in line DashDot</li>
|
|
<li> Select one or more lines in the 3D View</li>
|
|
<li> <b>Line A</b> : dimension of the dash (see <b>A</b> in the screen)</li>
|
|
<li> <b>Space B</b> : dimension of the space (see <b>B</b> in the screen) (May be different D)</li>
|
|
<li> <b>Line 2 C</b> : dimension of the dash (see <b>C</b> in the screen)</li>
|
|
<li> <b>Space 2 D</b> : dimension of the space (see <b>D</b> in the screen) (May be different B)</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Fourth section :
|
|
</p><p>Type line : DashDotDot
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_05.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_05.png" width="364" height="655" /></a></div>
|
|
<ul><li> The screen at the bottom of the macro change in line DashDotDot</li>
|
|
<li> Select one or more lines in the 3D View</li>
|
|
<li> <b>Line A</b> : dimension of the dash (see <b>A</b> in the screen)</li>
|
|
<li> <b>Space B</b> : dimension of the space (see <b>B</b> in the screen) </li>
|
|
<li> <b>Line 2 C</b> : dimension of the dash (see <b>C</b> in the screen)</li>
|
|
<li> <b>Space 2 D</b> : dimension of the space (see <b>D</b> in the screen) </li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Fifth section :
|
|
</p><p>Type line : ZigZag
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_06.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_06.png" width="364" height="655" /></a></div>
|
|
<ul><li> The screen at the bottom of the macro change in line ZigZag</li>
|
|
<li> This line are created</li>
|
|
<li> <b>Number heads</b> : number of heads for the total line</li>
|
|
<li> <b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">_____140.0_____</span></b> : The length total of the line are calculate in real time and displayed in this window</li>
|
|
<li> <b>Begin A</b> : dimension of begin line until first head, this section line hare same in the end line (see <b>A</b> in the screen)</li>
|
|
<li> <b>Dimension B</b> : dimension between the end and begin head (see <b>B</b> in the screen) </li>
|
|
<li> <b>Gap C</b> : dimension of the head (see <b>C</b> in the screen)</li>
|
|
<li> <b>Height D</b> : height dimension of the the head (see <b>D</b> in the screen) </li>
|
|
<li> <b>Number E</b> : number of heads contiguous (see <b>E</b> in the screen) </li>
|
|
<li> The options <b>Plane</b> and <b>Options lines</b> are available</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Sixth section :
|
|
</p><p>Type line : Hand
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_07.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_07.png" width="364" height="655" /></a></div>
|
|
<ul><li> This line are created</li>
|
|
<li> <b>Length A</b> : The length total of the line (see <b>A</b> in the screen)</li>
|
|
<li> <b>Height B</b> : Height of the line (see <b>B</b> in the screen)</li>
|
|
<li> <b>Wave</b> : compression or uncompress of the wave (see <b>Wave</b> in the screen)</li>
|
|
<li> The options <b>Plane</b> and <b>Options lines</b> are available</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Seventh section :
|
|
</p><p>Options line :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_08.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_08.png" width="105" height="133" /></a></div>
|
|
<p>This options are available for all menu
|
|
</p>
|
|
<ul><li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">__2,00 Width__</span> : dimension of the width of the line(s)</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">__2,00 Point S__</span> : dimension of the points of the line(s)</li>
|
|
<li><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Color</span> : color of the line(s) this button are colored with the color selected (if the checkbox "Bicolor" in the menu "Cut line" is checked this option are not used for this menu)</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Eighth section :
|
|
</p><p>Option Plane
|
|
</p><p>This option are available only for <b>"ZigZag"</b> and <b>"Hand"</b>
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_09.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_09.png" width="219" height="56" /></a></div>
|
|
<ul><li> <b>XY</b> : Plane XY</li>
|
|
<li> <b>YZ</b> : Plane YZ</li>
|
|
<li> <b>XZ</b> : Plane XZ</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p>Ninth section :
|
|
</p><p>Button
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_10.png" class="image" title="FCConvertLines"><img alt="FCConvertLines" src="Macro_FCConvertLines_10.png" width="352" height="60" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save type</span> : the line configured is saved in one file (one file for one type line). While saving a file header is predetermined depending on the chosen menu (example : Dash is saved, in the save window is displayed "Dash_.FCConvertL" you can modify to "Dash_my_config_10.FCConvertL" or the name you want... this method allow sharpens clear)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Load type</span> : load one file configured</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Name type line________________</span> : name of the type configured this name is saved in the file</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Reset</span> : reset the data's in the original configuration</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Create Comp</span> : this button create on compound with the lines created (ten lines selected = one compound)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Create</span> : create the lines separately (ten lines selected = ten lines created)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Quit</span> : quit the macro</li></ul>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="The_files_to_copy_in_your_directory_with_the_macro_.2810_files_images.29">The files to copy in your directory with the macro (10 files images)</span></h2>
|
|
<p><b>The icon for the toolBar</b>
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines.png" class="image" title="Macro_FCConvertLines"><img alt="Macro_FCConvertLines" src="Macro_FCConvertLines.png" width="64" height="64" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Title</b>
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_Title.png" class="image" title="ConvertLines_Title"><img alt="ConvertLines_Title" src="Macro_FCConvertLines_Title.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Line Dash</b> :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_Dash.png" class="image" title="ConvertLines_Dash"><img alt="ConvertLines_Dash" src="Macro_FCConvertLines_Dash.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Line DashDot</b> :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_DashDot.png" class="image" title="ConvertLines Dash dot"><img alt="ConvertLines Dash dot" src="Macro_FCConvertLines_DashDot.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Line DashDotDot</b> :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_DashDotDot.png" class="image" title="ConvertLines Dash dot dot"><img alt="ConvertLines Dash dot dot" src="Macro_FCConvertLines_DashDotDot.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Line Zigzag</b> :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_Zigzag.png" class="image" title="ConvertLines_Zigzag"><img alt="ConvertLines_Zigzag" src="Macro_FCConvertLines_Zigzag.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>Line Hand</b> :
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_Hand.png" class="image" title="ConvertLines_Hand"><img alt="ConvertLines_Hand" src="Macro_FCConvertLines_Hand.png" width="319" height="89" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p><b>View</b> :
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvrtLines_View-front.png" class="image" title="ConvrtLines_View-front"><img alt="ConvrtLines_View-front" src="Macro_FCConvrtLines_View-front.png" width="29" height="29" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvrtLines_View-right.png" class="image" title="ConvrtLines_View-right"><img alt="ConvrtLines_View-right" src="Macro_FCConvrtLines_View-right.png" width="29" height="29" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvrtLines_View-top.png" class="image" title="ConvrtLines_View-right"><img alt="ConvrtLines_View-right" src="Macro_FCConvrtLines_View-top.png" width="29" height="29" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p>Copy the macro <b>Macro_FCConvertLines.FCMacro</b> in your macros folder
|
|
</p><p>the script on Gist <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/3d719574089a5f9044ec">Macro_FCConvertLines.FCMacro</a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Examples">Examples</span></h2>
|
|
<p>Example dot, dash dot, dash dot, dash dot dot
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_11b.png" class="image"><img alt="Macro FCConvertLines 11b.png" src="500px-Macro_FCConvertLines_11b.png" width="500" height="129" srcset="/wiki/images/thumb/2/2d/Macro_FCConvertLines_11b.png/750px-Macro_FCConvertLines_11b.png 1.5x, /wiki/images/2/2d/Macro_FCConvertLines_11b.png 2x" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<p>Example hand, zigzag
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_11.png" class="image"><img alt="Macro FCConvertLines 11.png" src="500px-Macro_FCConvertLines_11.png" width="500" height="129" srcset="/wiki/images/thumb/9/9e/Macro_FCConvertLines_11.png/750px-Macro_FCConvertLines_11.png 1.5x, /wiki/images/9/9e/Macro_FCConvertLines_11.png 2x" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<p>Example hand
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_012.png" class="image"><img alt="Macro FCConvertLines 012.png" src="Macro_FCConvertLines_012.png" width="500" height="103" /></a></div></div>
|
|
<p>All lines created the configuration specifications set in this Option lines
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<p>Example hand can make beautiful sine wave or totally anarchic
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCConvertLines_013.png" class="image"><img alt="Macro FCConvertLines 013.png" src="500px-Macro_FCConvertLines_013.png" width="500" height="266" srcset="/wiki/images/4/43/Macro_FCConvertLines_013.png 1.5x" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
Example convert ShapeString to sketch (the curves hare not authorized for convert Shape to Sketch)
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ShapeString_To_Sketch.gif" class="image"><img alt="ShapeString To Sketch.gif" src="ShapeString_To_Sketch.gif" width="640" height="480" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Version">Version</span></h2>
|
|
<p>ver 00.07 13/05/2017 correct bug after create "Alternate ...." the dimension of lines stay with the dimension alternative and not restitution the desired dimensions
|
|
</p><p>ver 00.06 20/02/2017 correction of precision cut (replace "numberOfPoints = longueur" to "numberOfPoints = (longueur + 1)")
|
|
</p><p>ver 00.05 11/01/2017 replace de search method macro path
|
|
</p><p>ver 00.04 05/09/2016 setPointSize(8.0)
|
|
</p><p>ver 00.02 18/02/2016
|
|
</p><p>ver 00.01 19/01/2016
|
|
</p><p>ver 00.00 19/01/2016
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_FC_Convert_Lines&oldid=240403">http://www.freecadweb.org/wiki/index.php?title=Macro_FC_Convert_Lines&oldid=240403</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> |