Hide Table of Contents
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)
object ConvertLineToBcurve( 
   object StartPoint,
   object EndPoint
Object^ ConvertLineToBcurve( 
&   Object^ StartPoint,
&   Object^ EndPoint



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


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

Return Value

Array values giving the b-spline representation of the line


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.


See Also

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   ConvertLineToBcurve Method (ICurve)
*   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:


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

Web Help Content Version: API Help (English only) 2012 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.