Macro Circle

Description
This small macro create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point) on choice.

The circle is still facing the screen (with getCameraOrientation)

Use
Copy the code and paste it in the console Python the FreeCAD the command is used all the time to the disposal FreeCAD open give the parameter on choice :


 * x y z : coordinates of circle if not coordinates the circle is created on point 0,0,0
 * radius : radius of cicle
 * diameter : diameter of circle
 * circumference : circumference of circle
 * area : area of circle
 * startangle : start angle for arc
 * endangle : end angle for arc
 * arc and anglecenter : arc in combination with anglecenter
 * arc = length of arc
 * anglecenter = angle of center circle to extremities of arc
 * cord and arrow : cord in combination with arrow of circle
 * cord : length of cord of circle
 * arrow : length of arrow of circle
 * center : if center as different 0 one point is created on center of circle

if there is no parameter "circle" a list of functions is displayed in the report view

Example entrance :

Script
Macro_circle.FCMacro

Memo of circle
Examples codes