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 : length of arc in combination with anglecenter
 * cord and arrow : cord of circle in combination with 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