What's new

Darn Fool Questions...

Here is where questions about making Alibre Script work can be asked (and, hopefully, improve Documentation thereof).
 
I assume that this question is addressed to Andy...

I want to make s Closed Spline Curve in a Sketch. I have "values" for the (Sketch) x, and y values (defined as x_value[ ], & y_value[ ] arrays), but I find nothing in the documentation as to how one coulds make this work. ??? -- Lew
 

idslk

Alibre Super User
Hello Lew,

a simple one (more complex is possible...):
Code:
#set the current part to cp
cp = CurrentPart()
# 5 x,y points in data for closed spline last pair has to have the same values as first pair
data = [1,3,4,5,8,4,7,3,1,3]
# add a sketch named Curve on XYPlane / result will be named as curvesketch
curvesketch = cp.AddSketch('Curve', cp.XYPlane)
# add a BSline to the curvesketch using data
curvesketch.AddBspline(data,0)

only as a sample

Regards
Stefan
 
Top