Hide Table of Contents
GetBCurveParams4 Method (ICurve)

Obsolete. Superseded by ICurve::GetBCurveParams5.

.NET Syntax

Visual Basic (Declaration) 
Function GetBCurveParams4( _
   ByVal WantCubicIn As Boolean, _
   ByVal WantNRational As Boolean, _
   ByVal ForceNonPeriodic As Boolean, _
   ByVal IsClosed As Boolean _
) As Object
Visual Basic (Usage) 
Dim instance As ICurve
Dim WantCubicIn As Boolean
Dim WantNRational As Boolean
Dim ForceNonPeriodic As Boolean
Dim IsClosed As Boolean
Dim value As Object
value = instance.GetBCurveParams4(WantCubicIn, WantNRational, ForceNonPeriodic, IsClosed)
object GetBCurveParams4( 
   bool WantCubicIn,
   bool WantNRational,
   bool ForceNonPeriodic,
   bool IsClosed
Object^ GetBCurveParams4( 
&   bool WantCubicIn,
&   bool WantNRational,
&   bool ForceNonPeriodic,
&   bool IsClosed



True returns cubic rational parameters, false does not


True returns cubic rational parameters, false does not


True converts the periodic curve to nonperiodic, false does not

True for closed curves, false otherwise

Return Value

Array describing the parameters of the curve



To control the accuracy of the curve data, see IModeler::SetToleranceValue.

The return value is an array of doubles. The array size is ( 2 + numKnots + numControlPointDoubles) where numKnots is (numControlPoints + order). The array is as follows:

[ packedDouble1, packedDouble2, knot1, knot2,..., ControlPoint1[Dimension], ControlPoint2[Dimension],... ]


  • packedDouble1 is an integer pair containing the Dimension and Order

  • packedDouble2  is an integer pair containing the NumControlPoints and Periodicity

  • knot1

  • knot2


  • ControlPoint1[dimension]

  • ControlPoint2[dimension]


The size of the control point array is based on the curve dimension returned in packedDouble1:

  •   If Dimension = 3, then ControlPoint is an array of 3 doubles ( x, y, z )

  •   If Dimension = 4, then ControlPoint is an array of 4 doubles ( x, y, z, w ) where w = weight


The size of the knot array (NumKnots) is based on the Order returned in packedDouble1, and NumControlPoints and Periodicity returned in packedDouble2 as follows:

  • if Periodicity = 1, NumKnots = NumControlPoints + 1
  • if Periodicity != 1, NumKnots = NumControlPoints + Order

See Also


SolidWorks 2009 SP2, Revision Number 17.2

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:   GetBCurveParams4 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.