ConvertLineToBcurve Method (ICurve)

Converts the specified line into a b-spline curve.

# .NET Syntax

Visual Basic (Declaration)
```Function ConvertLineToBcurve( _
ByVal StartPoint As Object, _
ByVal EndPoint As Object _
) As Object```
Visual Basic (Usage)
``````Dim instance As ICurve
Dim StartPoint As Object
Dim EndPoint As Object
Dim value As Object

value = instance.ConvertLineToBcurve(StartPoint, EndPoint)``````
C#
```object ConvertLineToBcurve(
object StartPoint,
object EndPoint
)```
C++/CLI
```Object^ ConvertLineToBcurve(
&   Object^ StartPoint,
&   Object^ EndPoint
) ```

#### Parameters

StartPoint

Array values for the coordinates of the start point of the line

EndPoint

Array values for the coordinates of the end point of the line

#### Return Value

Array values giving the b-spline representation of the line

# Remarks

Given coordinates of two end points of a line, this method returns the b-spline representation of the line. The returned data are doubles arranged in the following order:

 dim, order Two integers packed into a double. dim Dimension of the control point data. If dim=3 (non-rational), control point coordinates are returned as [x0,y0,z0,x1,y1,z1,.....]. If dim=4 (rational), control point coordinates are returned as [x0,y0,z0,w0,x1,y1,z1,w1,.....], where w is the weight for the point. order Order of the b-spline returned. NumControlPoints, Periodic Two integers packed into a double. NumControlPoints Number of control points for the b-spline. Periodic True if the b-spline is periodic. Knots Knot vectors. The Knot array contains (NumControlPoints + order) knot values. If the original curve is periodic, then the data is  returned in a non-periodic form with extra knots inserted at the curve ends. ControlPoints List of control points output in (NumControlPoints) vectors of dimension dim. For non-rational b-spline, control point coordinates are output as [x0,y0,z0,x1,y1,z1,.........]. For rational b-spline, control point coordinates and the weight are output as [x0,y0,z0,w0,x1,y1,z1,w1,........], where w is the weight for the point.

Provide feedback on this topic

* Required

 *Email: Subject: Feedback on Help Topics Page: ConvertLineToBcurve Method (ICurve) *Comment: * I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

Never show this message again
x

Web Help Content Version: API Help (English only) 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.