Hide Table of Contents
ISketchSplineByEqnParams Method (IModelDoc2)

Creates a spline on the active 2D sketch using the specified b-curve parameters.

.NET Syntax

Visual Basic (Declaration) 
Function ISketchSplineByEqnParams( _
   ByRef PropArray As System.Integer, _
   ByRef KnotsArray As System.Double, _
   ByRef CntrlPntCoordArray As System.Double _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim PropArray As System.Integer
Dim KnotsArray As System.Double
Dim CntrlPntCoordArray As System.Double
Dim value As System.Integer
 
value = instance.ISketchSplineByEqnParams(PropArray, KnotsArray, CntrlPntCoordArray)
C# 
System.int ISketchSplineByEqnParams( 
   ref System.int PropArray,
   ref System.double KnotsArray,
   ref System.double CntrlPntCoordArray
)
C++/CLI 
System.int ISketchSplineByEqnParams( 
&   System.int% PropArray,
&   System.double% KnotsArray,
&   System.double% CntrlPntCoordArray
) 

Parameters

PropArray

Includes dimension, order, number of control points, and periodicity

KnotsArray

knot1, knot2, and so on

CntrlPntCoordArray

controlpoint1[dimension], controlpoint2[dimension], and so on

Return Value

True if created successfully, false if not

Example

Remarks

The PropArray argument contains 4 integers packed into the first two doubles in the array:

  •  Dimension

  •  Order

  •  Number of Control Points

  •  Periodicity ( True or false )

The KnotsArray argument is an array of doubles with (Number of Control Points + Order) elements.

The size of the CntrlPntCoordArray array is based upon the curve dimension:

  • Dimension = 2 then each control point is an array of 2 doubles ( x, y )

  • Dimension = 3 then each control point is an array of 3 doubles ( x, y, z)

  • Dimension = 4 then each control point is an array of 4 doubles ( x, y, z, w ) where w = weight

The parameters are provided as 3 arrays, which for COM applications are passed separately.

Pass control point coordinates  to this method in sketch space. The Z value is interpreted as 0. In certain situations, you must transform your b-curve parameters to sketch space with the help of ISketch::ModelToSketchTransform.

NOTE: If the spline being generated is a closed spline, then it must be flagged as periodic. In addition, splines generated in sketches must be G1 continuous. If the data passed to this method does not generate a G1 continuous spline, then it is rejected and a spline is not created.

 

See Also

Availability

SOLIDWORKS 2001Plus FCS, Revision Number 10.0


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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   ISketchSplineByEqnParams Method (IModelDoc2)
*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) 2015 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.