ADScript makes it easy to use Alibre Design with Python scripting. For example creating a new part:

Test = Part("Test")

We can get access to planes in the design workspace, for example:

XYPlane = Test.GetPlane("XY-Plane")

Once we have a part and plane we can create a sketch on the plane:

MySketch = Test.AddSketch("MySketch", XYPlane)

Adding to the sketch is easy:

MySketch.AddCircle(0, 0, 10, False)

Now we can extrude it:

Object = Test.AddExtrudeBoss("Object", MySketch, 5, False)