394 lines
32 KiB
HTML
394 lines
32 KiB
HTML
<html><head><title>Macro FCSpring Helix Variable</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 FCSpring Helix Variable</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_FCSpring_Helix_Variable"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable.png" class="image"><img alt="FCSpring Helix Variable.png" src="32px-FCSpring_Helix_Variable.png" width="32" height="32" srcset="/wiki/images/thumb/6/69/FCSpring_Helix_Variable.png/48px-FCSpring_Helix_Variable.png 1.5x, FCSpring_Helix_Variable.png 2x" /></a> Macro FCSpring Helix Variable</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">Creates a spring with helix variable.
|
|
</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.12
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2017-04-03
|
|
</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_FCSpring_Helix_Variable"><span class="tocnumber">1</span> <span class="toctext">Macro FCSpring Helix Variable</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="#Gui"><span class="tocnumber">4</span> <span class="toctext"><b>Gui</b></span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-4"><a href="#First_section.2C_spring_configuration"><span class="tocnumber">4.1</span> <span class="toctext"><b>First section, spring configuration</b></span></a></li>
|
|
<li class="toclevel-2 tocsection-5"><a href="#Second_section.2C_type_line"><span class="tocnumber">4.2</span> <span class="toctext"><b>Second section, type line</b></span></a></li>
|
|
<li class="toclevel-2 tocsection-6"><a href="#Third_section.2C_selection"><span class="tocnumber">4.3</span> <span class="toctext"><b>Third section, selection</b></span></a></li>
|
|
<li class="toclevel-2 tocsection-7"><a href="#Position_.280.29.28xx.29"><span class="tocnumber">4.4</span> <span class="toctext">Position (0)(xx)</span></a></li>
|
|
<li class="toclevel-2 tocsection-8"><a href="#Four_section.2C_coil_special_length"><span class="tocnumber">4.5</span> <span class="toctext"><b>Four section, coil special length</b></span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-9"><a href="#Commands"><span class="tocnumber">5</span> <span class="toctext">Commands</span></a></li>
|
|
<li class="toclevel-1 tocsection-10"><a href="#Report_view"><span class="tocnumber">6</span> <span class="toctext">Report view</span></a></li>
|
|
<li class="toclevel-1 tocsection-11"><a href="#Example_spring"><span class="tocnumber">7</span> <span class="toctext">Example spring</span></a></li>
|
|
<li class="toclevel-1 tocsection-12"><a href="#Example_Report_view"><span class="tocnumber">8</span> <span class="toctext">Example Report view</span></a></li>
|
|
<li class="toclevel-1 tocsection-13"><a href="#Icon"><span class="tocnumber">9</span> <span class="toctext">Icon</span></a></li>
|
|
<li class="toclevel-1 tocsection-14"><a href="#Script"><span class="tocnumber">10</span> <span class="toctext">Script</span></a></li>
|
|
<li class="toclevel-1 tocsection-15"><a href="#Examples"><span class="tocnumber">11</span> <span class="toctext">Examples</span></a></li>
|
|
<li class="toclevel-1 tocsection-16"><a href="#Links"><span class="tocnumber">12</span> <span class="toctext">Links</span></a></li>
|
|
<li class="toclevel-1 tocsection-17"><a href="#Project"><span class="tocnumber">13</span> <span class="toctext">Project</span></a></li>
|
|
<li class="toclevel-1 tocsection-18"><a href="#Version"><span class="tocnumber">14</span> <span class="toctext">Version</span></a></li>
|
|
<li class="toclevel-1 tocsection-19"><a href="#Limitations"><span class="tocnumber">15</span> <span class="toctext">Limitations</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr>
|
|
</table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>This macro creates a spring with customizable, any turn may change the spring configuration can be saved in a file with the extension <b>.FCSpring</b><br />
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:TruncateSpring00.png" class="image" title="FCSpring Helix Variable"><img alt="FCSpring Helix Variable" src="400px-TruncateSpring00.png" width="400" height="400" srcset="/wiki/images/6/6b/TruncateSpring00.png 1.5x" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Use">Use</span></h2>
|
|
<p>This section is used to configuration the spring
|
|
</p><p>Schematic detail of spring configuration
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_TruncateSpring_01.png" class="image"><img alt="Macro TruncateSpring 01.png" src="Macro_TruncateSpring_01.png" width="718" height="592" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Gui"><b>Gui</b></span></h2>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_01.png" class="image"><img alt="Macro FCSpring Helix Variable 01.png" src="Macro_FCSpring_Helix_Variable_01.png" width="271" height="693" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h3><span class="mw-headline" id="First_section.2C_spring_configuration"><b>First section, spring configuration</b></span></h3>
|
|
<ul><li> <b>Number of coil</b> : Total of coil to spring. Default = 10</li>
|
|
<li> <b>Radius of spring</b> : Radius of spring. Default = 20.0</li>
|
|
<li> <b>Pitch of spring</b> : Pitch of spring general. Default = 15.0</li>
|
|
<li> <b>Precision of turn</b> : Precision of turn the precision correspond the number of point for 1 turn the coil and is calculate : precision (number points) = (pitch / (360/precision)). Default = 5 (72 points)</li>
|
|
<li> <b>Spring conical</b> : Give the large diameter of the cone that dimension will always be greater than the radius</li>
|
|
<li> <b>Begin</b> : Begin angle of the spring first coil.</li>
|
|
<li> <b>End</b> : End angle of the spring last coil.</li>
|
|
<li> <b>Ch.</b> : Check box choice for activate the function Begin and End angle of the coil unchecked by default.<br /> If the function is checked The accuracy is automatically set to 1 (360 points per turn 1 point = 1 degrees)</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_02.png" class="image"><img alt="Macro FCSpring Helix Variable 02.png" src="Macro_FCSpring_Helix_Variable_02.png" width="268" height="242" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h3><span class="mw-headline" id="Second_section.2C_type_line"><b>Second section, type line</b></span></h3>
|
|
<ul><li> <b>BSpline</b> : Type line BSpline.</li>
|
|
<li> <b>Wire</b> : Type line Wire.</li>
|
|
<li> <b>Points</b> : Check box point if the check box is activate one point is create of on each point.</li>
|
|
<li> <b>Reverse</b> : Check box reverse if the check box is activate the spring changes direction</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_03.png" class="image"><img alt="Macro FCSpring Helix Variable 03.png" src="Macro_FCSpring_Helix_Variable_03.png" width="249" height="62" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h3><span class="mw-headline" id="Third_section.2C_selection"><b>Third section, selection</b></span></h3>
|
|
<p>This section is displayed if on object is selected. The type object is displayed in the Text Editor
|
|
</p><p>The object can be line, 2 points, circle, wire ... one axis the length of the spring is automatically created
|
|
</p><p>Detection : Cylinder (radius), Sphere (radius), Toroid (radius) , Cone (little radius), Circle (radius), Arc (radius), Ellipse (little radius)
|
|
</p>
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Norm.</span> : If one circle is selected <b>Norm</b> not modify the radius of circle (Default)
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">AdpRa</span> : If the buttom is pressed, the spring is adapted to the detected radius (If a radius is detected )</li></ul></li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">PMous</span> : If the clic mouse is on one face the spring is createt on this point (Default)
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CFace</span> : If the buttom is pressed, the spring is created on the center face selected</li></ul></li>
|
|
<li> <b>Position</b> : If twoo object are selected (first axis, second spring), this checkBox is enabled and you can modify the placement object 2 (spring) along the on object 1 (axis)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Circle</span> : If three points click mouse are selected the Circle button is enabled and it possible to create a circle which can serve as a base for a spring</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">...</span> : </li></ul>
|
|
<h3><span class="mw-headline" id="Position_.280.29.28xx.29">Position (0)(xx)</span></h3>
|
|
<p>(0)(xx) : Number selection(s), length in mm of axis created x 10, egual number of points for shifting the spring of the axis
|
|
</p>
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Begin/End</span> : Position the spring on begin, middle, end axis</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">RSpr</span> : Reverse the spring of the axis</li>
|
|
<li> <b>DoubleSpinBox</b> : Shifting the spring with precision (0.1 mm) along its axis</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">RCom</span> : Reverse the counter ex: Begin 0 to 10.. or End 0 to 10..</li>
|
|
<li> <b>Slider</b> : Position the spring on its axis</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_02_2.png" class="image"><img alt="Macro FCSpring Helix Variable 02 2.png" src="Macro_FCSpring_Helix_Variable_02_2.png" width="271" height="113" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h3><span class="mw-headline" id="Four_section.2C_coil_special_length"><b>Four section, coil special length</b></span></h3>
|
|
<ul><li> <b>Numbering of coil</b> : Numbering of coil to modify. (Defaut : none)</li>
|
|
<li> <b>Smoothing</b> This checkBox discover one spinBox for determine the grade of smoothing the maximum value is the precision value -1 (this option is still at the prototype stage and the result can be satisfying or completely wrong)</li>
|
|
<li> <b>Pitch of coil</b> : Pitch of coil to modify. (Defaut : none) </li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">15</span> : If the button is pressed the value of the "Pitch of string" is affected of the "Pitch of coil" (This value is automatically aligned of the value Pitch of string)</li>
|
|
<li> <b>Radius of coil</b> : Radius of coil to modify. (Defaut : none)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">20</span> : If the button is pressed the value of the "Radius of string" is affected of the "Radius of coil" (This value is automatically aligned of the value Radius of string)</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Accept the value modified</span> : Button to accept the modification after select the numbering of coil and modify the pitch of coil.</li>
|
|
<li> <b>Text edit</b> : This window displayed all coil modified. </li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span> : Clean the text editor</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> : Button "Zoom" enlarge the textedit window</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_04.png" class="image"><img alt="Macro FCSpring Helix Variable 04.png" src="Macro_FCSpring_Helix_Variable_04.png" width="273" height="213" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Commands">Commands</span></h2>
|
|
<ul><li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Load</span> : The Read button open a dialogue box to read a file <b>.FCSpring</b>.</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save</span> : The Save button open a dialogue box to save a file <b>.FCSpring</b> with configuration spring modify or not.</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Load Coordinates</span> : Open a dialogue box to read a file <b>.FCSpringCoor</b> (all coordinates of points of the spring).</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Save Coordinates</span> : Open a dialogue box to save a file <b>.FCSpringCoor</b> (all coordinates of points of the spring).</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Quit</span> : Quit the macro.</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Reset</span> : Reset the macro to default configuration.</li>
|
|
<li> <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Launch</span> : Launch the macro and create the spring configured.</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_05.png" class="image"><img alt="Macro FCSpring Helix Variable 05.png" src="Macro_FCSpring_Helix_Variable_05.png" width="269" height="78" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Report_view">Report view</span></h2>
|
|
<p>The window report view displayed all value modified.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_06.png" class="image"><img alt="Macro FCSpring Helix Variable 06.png" src="Macro_FCSpring_Helix_Variable_06.png" width="340" height="283" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Example_spring">Example spring</span></h2>
|
|
<p>Example to spring modified
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_07.png" class="image"><img alt="Macro FCSpring Helix Variable 07.png" src="Macro_FCSpring_Helix_Variable_07.png" width="160" height="336" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Example_Report_view">Example Report view</span></h2>
|
|
<p>When the macro is launched full list of turns is displayed in tabular form.
|
|
</p><p>Here the data of the spring above and displayed in the Report view
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_08.png" class="image"><img alt="Macro FCSpring Helix Variable 08.png" src="Macro_FCSpring_Helix_Variable_08.png" width="948" height="60" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Icon">Icon</span></h2>
|
|
<p>Download the file image and copy in your macro repertory.
|
|
</p><p>Click the image, in the new window position the mouse over the image, click the right mouse and do "Save target as ..."
|
|
</p>
|
|
ToolBar button <div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable.png" class="image" title="Button"><img alt="Button" src="FCSpring_Helix_Variable.png" width="64" height="64" /></a></div>
|
|
<div style="clear:both"></div>
|
|
<p>Macro icons
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_01.png" class="image"><img alt="FCSpring Helix Variable Icon 01.png" src="FCSpring_Helix_Variable_Icon_01.png" width="32" height="32" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_02.png" class="image"><img alt="FCSpring Helix Variable Icon 02.png" src="FCSpring_Helix_Variable_Icon_02.png" width="32" height="32" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_02b.png" class="image"><img alt="FCSpring Helix Variable Icon 02b.png" src="FCSpring_Helix_Variable_Icon_02b.png" width="32" height="32" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_03.png" class="image"><img alt="FCSpring Helix Variable Icon 03.png" src="FCSpring_Helix_Variable_Icon_03.png" width="32" height="32" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_03b.png" class="image"><img alt="FCSpring Helix Variable Icon 03b.png" src="FCSpring_Helix_Variable_Icon_03b.png" width="32" height="32" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_04.png" class="image"><img alt="FCSpring Helix Variable Icon 04.png" src="FCSpring_Helix_Variable_Icon_04.png" width="48" height="48" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_05.png" class="image"><img alt="FCSpring Helix Variable Icon 05.png" src="FCSpring_Helix_Variable_Icon_05.png" width="47" height="45" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:FCSpring_Helix_Variable_Icon_06.png" class="image"><img alt="FCSpring Helix Variable Icon 06.png" src="FCSpring_Helix_Variable_Icon_06.png" width="32" height="32" /></a>
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p><b>Macro_FCSpring_Helix_Variable.FCMacro</b>
|
|
</p><p>Download the macro to Gist <a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/68c81c32a0727a693d3a">Macro_FCSpring_Helix_Variable</a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Examples">Examples</span></h2>
|
|
<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:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Valves_Assembly_IN_EX.png" class="image"><img alt="" src="260px-Valves_Assembly_IN_EX.png" width="260" height="300" srcset="/wiki/images/thumb/4/48/Valves_Assembly_IN_EX.png/390px-Valves_Assembly_IN_EX.png 1.5x, /wiki/images/thumb/4/48/Valves_Assembly_IN_EX.png/520px-Valves_Assembly_IN_EX.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Valves Assembly IN EX with permit and created by r.tec see <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=24&t=14183">Inlet & Exhaust Valves Assembly</a> and <a rel="nofollow" class="external text" href="http://forum.freecadweb.org/viewtopic.php?f=13&t=14143">Spiralfeder</a> thanks r.tec
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_12.png" class="image"><img alt="Macro FCSpring Helix Variable 12.png" src="200px-Macro_FCSpring_Helix_Variable_12.png" width="200" height="200" srcset="/wiki/images/thumb/2/29/Macro_FCSpring_Helix_Variable_12.png/300px-Macro_FCSpring_Helix_Variable_12.png 1.5x, /wiki/images/thumb/2/29/Macro_FCSpring_Helix_Variable_12.png/400px-Macro_FCSpring_Helix_Variable_12.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_13.png" class="image"><img alt="Macro FCSpring Helix Variable 13.png" src="267px-Macro_FCSpring_Helix_Variable_13.png" width="267" height="200" srcset="/wiki/images/thumb/c/c0/Macro_FCSpring_Helix_Variable_13.png/400px-Macro_FCSpring_Helix_Variable_13.png 1.5x, /wiki/images/thumb/c/c0/Macro_FCSpring_Helix_Variable_13.png/533px-Macro_FCSpring_Helix_Variable_13.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_14.png" class="image"><img alt="Macro FCSpring Helix Variable 14.png" src="267px-Macro_FCSpring_Helix_Variable_14.png" width="267" height="200" srcset="/wiki/images/thumb/1/18/Macro_FCSpring_Helix_Variable_14.png/400px-Macro_FCSpring_Helix_Variable_14.png 1.5x, /wiki/images/thumb/1/18/Macro_FCSpring_Helix_Variable_14.png/533px-Macro_FCSpring_Helix_Variable_14.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_15.png" class="image"><img alt="Macro FCSpring Helix Variable 15.png" src="267px-Macro_FCSpring_Helix_Variable_15.png" width="267" height="200" srcset="/wiki/images/thumb/0/08/Macro_FCSpring_Helix_Variable_15.png/400px-Macro_FCSpring_Helix_Variable_15.png 1.5x, /wiki/images/thumb/0/08/Macro_FCSpring_Helix_Variable_15.png/533px-Macro_FCSpring_Helix_Variable_15.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_16.png" class="image"><img alt="Macro FCSpring Helix Variable 16.png" src="267px-Macro_FCSpring_Helix_Variable_16.png" width="267" height="200" srcset="/wiki/images/thumb/6/62/Macro_FCSpring_Helix_Variable_16.png/400px-Macro_FCSpring_Helix_Variable_16.png 1.5x, /wiki/images/thumb/6/62/Macro_FCSpring_Helix_Variable_16.png/533px-Macro_FCSpring_Helix_Variable_16.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_17.png" class="image"><img alt="Macro FCSpring Helix Variable 17.png" src="267px-Macro_FCSpring_Helix_Variable_17.png" width="267" height="200" srcset="/wiki/images/thumb/a/a0/Macro_FCSpring_Helix_Variable_17.png/400px-Macro_FCSpring_Helix_Variable_17.png 1.5x, /wiki/images/thumb/a/a0/Macro_FCSpring_Helix_Variable_17.png/533px-Macro_FCSpring_Helix_Variable_17.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_18.png" class="image"><img alt="Macro FCSpring Helix Variable 18.png" src="267px-Macro_FCSpring_Helix_Variable_18.png" width="267" height="200" srcset="/wiki/images/thumb/8/86/Macro_FCSpring_Helix_Variable_18.png/400px-Macro_FCSpring_Helix_Variable_18.png 1.5x, /wiki/images/thumb/8/86/Macro_FCSpring_Helix_Variable_18.png/533px-Macro_FCSpring_Helix_Variable_18.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 635px"><div style="width: 635px">
|
|
<div class="thumb" style="width: 630px;"><div style="margin:21px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_19.png" class="image"><img alt="" src="600px-Macro_FCSpring_Helix_Variable_19.png" width="600" height="188" srcset="/wiki/images/0/0f/Macro_FCSpring_Helix_Variable_19.png 1.5x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Difference between Smooth (here 71 with precision 5 (72 points)) and normal
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 835px"><div style="width: 835px">
|
|
<div class="thumb" style="width: 830px;"><div style="margin:40.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable.gif" class="image"><img alt="" src="Macro_FCSpring_Helix_Variable.gif" width="800" height="749" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Example
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 835px"><div style="width: 835px">
|
|
<div class="thumb" style="width: 830px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpringHelixVariable_Example_02.gif" class="image"><img alt="" src="Macro_FCSpringHelixVariable_Example_02.gif" width="729" height="800" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Example create conical spring
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</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=3&t=8313&p=68161#p68161">Try to do a Spring</a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Project">Project</span></h2>
|
|
<p>spring solid truncated
|
|
</p><p>soften fittings :done
|
|
</p><p>modify diameter to any coil :done
|
|
</p>
|
|
<h2><span class="mw-headline" id="Version">Version</span></h2>
|
|
<p>03/04/2017: ver 01.12: correction bug line 2314 add "global ui"
|
|
</p><p>11/12/2016: ver 01.11: Adding Position of the spring on a selected object
|
|
</p><p>10/09/2016: ver 01.10: Adding Button "Zoom" enlarge the textedit window
|
|
</p><p>04/09/2016: ver 01.09: add smoothing
|
|
</p><p>16/03/2016: ver 01.08 : correct and add "int()" to debutAngle and finAngle (read file)
|
|
</p><p>02/03/2016: ver 01.07 : add option reverse spring
|
|
</p><p>08/02/2016: ver 01.06 : correct bug angle cause "modifyAngle = int(file.readline().rstrip('\n\r')) # 9" modifyAngle is int() not char
|
|
</p><p>07/01/2015: ver 01.05 : adding "Try ...Except" (data cone) for compatibility with old version
|
|
</p><p>07/01/2015: ver 01.04 : adding spring conical and modify the path to "UserAppData" and adding the icone.
|
|
</p><p>07/12/2014: ver 01.03 : new version with radius coil adjustable
|
|
</p><p>17/11/2014: ver 1.02 : new version with GUI and modification any coil and save or load the data to disk.
|
|
</p><p>10/11/2014: (23h20) correction of the modification
|
|
</p>
|
|
<pre>ligne.Placement = App.Placement(App.Vector(0.0,0.0,0.0), App.Rotation(App.Vector(0,0,1),angleTr), App.Vector(0,0,0)) </pre>
|
|
<p>10/11/2014: modify line 44 :
|
|
</p>
|
|
<pre>a = FreeCAD.ActiveDocument.Line.Placement=App.Placement(App.Vector(0.0,0.0,0.0), App.Rotation(App.Vector(0,0,1),angleTr), App.Vector(0,0,0)) </pre>
|
|
<p>to
|
|
</p>
|
|
<pre>ligne = FreeCAD.ActiveDocument.Line.Placement=App.Placement(App.Vector(0.0,0.0,0.0), App.Rotation(App.Vector(0,0,1),angleTr), App.Vector(0,0,0)) </pre>
|
|
<p>6/11/2014 : adding "makeBSpline" and configuration
|
|
</p>
|
|
<h2><span class="mw-headline" id="Limitations">Limitations</span></h2>
|
|
<p>During sweep tests here are the mistakes I have obtained !
|
|
</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:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_20.png" class="image"><img alt="" src="267px-Macro_FCSpring_Helix_Variable_20.png" width="267" height="200" srcset="/wiki/images/thumb/0/0f/Macro_FCSpring_Helix_Variable_20.png/400px-Macro_FCSpring_Helix_Variable_20.png 1.5x, /wiki/images/thumb/0/0f/Macro_FCSpring_Helix_Variable_20.png/533px-Macro_FCSpring_Helix_Variable_20.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>For the moment the macro is not adapted for the square, rectangle... <br />Only circle work well
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:18.5px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_09.png" class="image"><img alt="" src="300px-Macro_FCSpring_Helix_Variable_09.png" width="300" height="93" srcset="/wiki/images/thumb/5/55/Macro_FCSpring_Helix_Variable_09.png/450px-Macro_FCSpring_Helix_Variable_09.png 1.5x, /wiki/images/5/55/Macro_FCSpring_Helix_Variable_09.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>ACCESS VIOLATION
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_10.png" class="image"><img alt="" src="85px-Macro_FCSpring_Helix_Variable_10.png" width="85" height="100" srcset="/wiki/images/thumb/4/46/Macro_FCSpring_Helix_Variable_10.png/127px-Macro_FCSpring_Helix_Variable_10.png 1.5x, /wiki/images/thumb/4/46/Macro_FCSpring_Helix_Variable_10.png/170px-Macro_FCSpring_Helix_Variable_10.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>TCollection_IndexedDataMap
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</p>
|
|
<center>
|
|
<ul class="gallery mw-gallery-traditional">
|
|
<li class="gallerybox" style="width: 335px"><div style="width: 335px">
|
|
<div class="thumb" style="width: 330px;"><div style="margin:15px auto;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCSpring_Helix_Variable_11.png" class="image"><img alt="" src="93px-Macro_FCSpring_Helix_Variable_11.png" width="93" height="100" srcset="/wiki/images/thumb/4/4a/Macro_FCSpring_Helix_Variable_11.png/140px-Macro_FCSpring_Helix_Variable_11.png 1.5x, /wiki/images/thumb/4/4a/Macro_FCSpring_Helix_Variable_11.png/187px-Macro_FCSpring_Helix_Variable_11.png 2x" /></a></div></div>
|
|
<div class="gallerytext">
|
|
<p>Wrong usage of punctual sections
|
|
</p>
|
|
</div>
|
|
</div></li>
|
|
</ul>
|
|
</center>
|
|
<p><br />
|
|
</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_FCSpring_Helix_Variable&oldid=271884">http://www.freecadweb.org/wiki/index.php?title=Macro_FCSpring_Helix_Variable&oldid=271884</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> |