133 lines
8.6 KiB
HTML
133 lines
8.6 KiB
HTML
<html><head><title>Macro CirclePlus</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 CirclePlus</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_CirclePlus"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_CirclePlus.png" class="image"><img alt="Macro CirclePlus.png" src="32px-Macro_CirclePlus.png" width="32" height="32" srcset="/wiki/images/thumb/4/4c/Macro_CirclePlus.png/48px-Macro_CirclePlus.png 1.5x, Macro_CirclePlus.png 2x" /></a> Macro CirclePlus</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">Creates a circle or arc with parameters.
|
|
</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">0.0
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2018-07-10
|
|
</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_CirclePlus"><span class="tocnumber">1</span> <span class="toctext">Macro CirclePlus</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="#Memo_of_circle"><span class="tocnumber">5</span> <span class="toctext">Memo of circle</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Version"><span class="tocnumber">6</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 small macro create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point), placemObject on choice.
|
|
</p><p>The circle is still facing the screen (with getCameraOrientation) (or give the placement)
|
|
</p><p>The click mouse on spinbox recolour the frame for indicate the associate spinbox in green and in orange the optional spinbox
|
|
</p><p>If one value is omitted or inadequate the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Ok</span> is coloured in red
|
|
</p>
|
|
<h2><span class="mw-headline" id="Use">Use</span></h2>
|
|
<p>Copy the code and paste it in the macro directory
|
|
</p>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_CirclePlus_00.png" class="image"><img alt="Macro CirclePlus 00.png" src="Macro_CirclePlus_00.png" width="228" height="302" /></a></div>
|
|
<ul><li> <b>X Y Z</b> : coordinates of circle if not coordinates the circle is created on point 0,0,0</li>
|
|
<li><b>radius</b> : radius of cicle</li>
|
|
<li><b>diameter</b> : diameter of circle</li>
|
|
<li><b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Reset</span></b> : reset the coordinate value</li>
|
|
<li><b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Equal</span></b> : copy the X value in Y and Z window</li>
|
|
<li><b>CheckBox :</b></li>
|
|
<li><b>Options</b> : other options for create circle</li>
|
|
<li><b>Point</b> : if checked the central point is created</li>
|
|
<li><b>Info</b> : if checked display the information give in the macro</li>
|
|
<li><b>Face</b> : if checked the face is created on circle</li>
|
|
<li><b>Sector</b> : if checked the sector is created </li>
|
|
<li><b>SpinBox 8</b> : give the height of text in the macro</li>
|
|
<li><b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Quit</span></b> : quit the macro (this button is coloured in red in case error)</li>
|
|
<li><b><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Ok</span></b> : create the circle</li></ul>
|
|
<div style="clear:both"></div>
|
|
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_CirclePlus_01.png" class="image"><img alt="Macro CirclePlus 01.png" src="Macro_CirclePlus_01.png" width="228" height="552" /></a></div>
|
|
<ul><li><b>Options available</b></li>
|
|
<li><b>circumference</b> : circumference of circle</li>
|
|
<li><b>area</b> : area of circle</li>
|
|
<li><b>startangle</b> : start angle for arc</li>
|
|
<li><b>endangle</b> : end angle for arc</li>
|
|
<li><b>arc</b> and <b>anglecenter</b> : arc in combination with anglecenter
|
|
<ul><li> <b>arc</b> = length of arc</li>
|
|
<li> <b>anglecenter</b> = angle of center circle to extremities of arc </li></ul></li>
|
|
<li><b>cord</b> and <b>arrow</b> : cord in combination with arrow of circle
|
|
<ul><li> <b>cord</b> : length of cord of circle </li>
|
|
<li> <b>arrow</b> : length of arrow of circle </li></ul></li></ul>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Script">Script</span></h2>
|
|
<p>Download image positioning on the icon <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_CirclePlus.png" class="image"><img alt="Macro CirclePlus.png" src="Macro_CirclePlus.png" width="64" height="64" /></a> and then drag the mouse right click "save as" (do not change the name)<br />
|
|
</p>
|
|
<div class="plainlinks" style="width:450px; text-align:center; margin:10px auto;">
|
|
<div style="border:1px outset #9eb4b5; background:#c0ffd8; margin:5px; padding:5px; white-space:nowrap; -webkit-border-radius: 5px; -moz-border-radius: 5px;">
|
|
<center><font color="#007900"><u>Download the code file</u></font></center>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Nuvola_apps_download_manager.png" class="image"><img alt="Nuvola apps download manager.png" src="35px-Nuvola_apps_download_manager.png" width="35" height="35" srcset="/wiki/images/thumb/2/26/Nuvola_apps_download_manager.png/53px-Nuvola_apps_download_manager.png 1.5x, /wiki/images/thumb/2/26/Nuvola_apps_download_manager.png/70px-Nuvola_apps_download_manager.png 2x" /></a></div></div><br />
|
|
<span class="CodeDownload"><center><a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/0ed8129bacbe9124a41e3ae1d378d5b7">last version Macro_CirclePlus and the icons at the end of the page</a></center></span>
|
|
<p><br />
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Memo_of_circle">Memo of circle</span></h2>
|
|
<p><b>Examples codes</b>
|
|
</p>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Circle_01.png" class="image" title="examples 1, 2, 3"><img alt="examples 1, 2, 3" src="640px-Macro_Circle_01.png" width="640" height="293" srcset="/wiki/images/6/61/Macro_Circle_01.png 1.5x" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Circle_02.png" class="image" title="examples"><img alt="examples" src="640px-Macro_Circle_02.png" width="640" height="293" srcset="/wiki/images/2/23/Macro_Circle_02.png 1.5x" /></a></div></div>
|
|
<div style="clear:both"></div>
|
|
<h2><span class="mw-headline" id="Version">Version</span></h2>
|
|
<p>ver 0.0 , 2018-07-10 :
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_CirclePlus&oldid=289058">http://www.freecadweb.org/wiki/index.php?title=Macro_CirclePlus&oldid=289058</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> |