1 Reply Latest reply on Aug 29, 2013 6:46 AM by Santosh Pawar

# Spline curve drawn through the given point

Helo!

Would you please help me to resolve cases like this:

I want to draw spline curve through the given point as code and along with the constraints.

Spline curve  passing through the points on the circle, values of the coordinates of the point of this point is a variable depends on the value of the radius of the circle

how to draw a spline curve passing through these points? when we change the value of the radius of the circle the spline curve will change automatically.

so grateful for this help.

_________________________________

• ###### Re: Spline curve drawn through the given point

Hi Vu,

You can create a spline using CreateSpline Method (ISketchManager),

e.g.

ReDim points(0 To 14) As Double

points(0) = 0

points(1) = 0

points(2) = 0

points(3) = 0.05

points(4) = 0

points(5) = 0

points(6) = 0.05

points(7) = 0.05

points(8) = 0

points(9) = 0.1

points(10) = 0.05

points(11) = 0

pointArray = points

Set skSegment = Part.SketchManager.CreateSpline((pointArray))

I think the contraints would be automatically applied.