This repository was archived by the owner on Apr 25, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Circle
Stephen S. Mitchell edited this page Apr 25, 2026
·
4 revisions
Namespace: AlibreScript.API | Kind: Class
The Circle class provides functionality for creating and manipulating circular geometry within sketches and 3D space.
Circles are fundamental geometric elements in Alibre Design scripting. They're commonly used for:
- Holes and circular features in mechanical parts
- Circular patterns and geometric layouts
- Constraint references for assembly positioning
- Measurement and inspection points
# Create a simple circle for a hole
center_point = [0, 0]
hole_radius = 5.0
hole_circle = Circle(center_point, hole_radius, False)
sketch.AddCircle(hole_circle)
# Create reference circles for constraints
ref_circle = Circle([10, 10], 2.5, True) # Reference circle
sketch.AddCircle(ref_circle)
# Access circle properties for calculations
circle_area = 3.14159 * (circle.Radius ** 2)
circumference = circle.Length- Sketch - Contains circle geometry
- CircularArc - Arc-based circular geometry
- Ellipse - Elliptical geometry
- Point - Center point handling
- Line - Linear geometry
- Properties - Circle properties and dimensions
- Methods - Available operations
Type: Object
The center of the circle [x, y]
Type: Object
The center of the circle as a sketch point
Type: Object
True if the circle is a reference circle, false if it is a regular circle
Type: Object
The length of the circle circumference in script units
Type: Object
Radius of the circle
Creates a 2D circle which can be added to sketches
def Circle(center, radius, is_reference):
"""
Creates a 2D circle which can be added to sketches
Args:
center (list): Center of the circle as a python list [x, y]
radius (float): Radius of circle
is_reference (bool): True to create a reference circle
"""Documentation Home | Classes | Methods Index | Properties Index | Members Index
Generated on 2025-09-23 02:06