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

87 lines
4.4 KiB
HTML

<html><head><title>Macro MeasureCircle</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 MeasureCircle</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_MeasureCircle"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_MeasureCircle.png" class="image"><img alt="Macro MeasureCircle.png" src="32px-Macro_MeasureCircle.png" width="32" height="32" srcset="/wiki/images/thumb/b/bd/Macro_MeasureCircle.png/48px-Macro_MeasureCircle.png 1.5x, /wiki/images/b/bd/Macro_MeasureCircle.png 2x" /></a> Macro MeasureCircle</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Description
</th></tr>
<tr>
<td class="ctEven left macro-description">Compute the radius of a circle by 3 points or a circular edge
</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:Galou_breizh&amp;action=edit&amp;redlink=1" class="new" title="User:Galou breizh (page does not exist)">galou_breizh</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">1.0
</td></tr>
<tr>
<th class="ctOdd">Date last modification
</th></tr>
<tr>
<td class="ctEven macro-date">2016-04-08
</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_MeasureCircle"><span class="tocnumber">1</span> <span class="toctext">Macro MeasureCircle</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="#How_To_Use"><span class="tocnumber">3</span> <span class="toctext">How To Use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Code"><span class="tocnumber">4</span> <span class="toctext">Code</span></a></li>
</ul>
</div>
</td></tr>
</table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>This macro will report the computed radius and center of a circle given 3 vertices or a circular edge.
A line is drawn from the center of the circle to the first vertex, which may be used for future measurements.
</p><p><br />
</p>
<h2><span class="mw-headline" id="How_To_Use">How To Use</span></h2>
<p>Copy the macro in your macros' folder and run (see <a href="How_to_install_macros.html" title="How to install macros">How to install macros</a> for further details).
</p><p>Just select the vertices and the result will be shown in the Report View.
Edges may also be selected and count as two vertices.
A circular edge can also be selected.
If two edges are selected the end vertex of the second edge is not used in the calculation.
</p><p>You can either select elements and then launch the macro or launch the macro without selection and select elements after launch.
If not enough elements are selected before launching the macro, you must select the missing elements.
</p>
<h2><span class="mw-headline" id="Code">Code</span></h2>
<p>The lastest version of the macro is to be found at <a rel="nofollow" class="external free" href="https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/MeasureCircle.FCMacro">https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/MeasureCircle.FCMacro</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_MeasureCircle&amp;oldid=240514">http://www.freecadweb.org/wiki/index.php?title=Macro_MeasureCircle&amp;oldid=240514</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>