Hide Table of Contents
CreateSplinesByEqnParams Method (IModelDoc2)

Obsolete. Superseded by ISketchManager::CreateSplinesByEqnParams.

.NET Syntax

Visual Basic (Declaration) 
Function CreateSplinesByEqnParams( _
   ByVal ParamsIn As System.Object _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim ParamsIn As System.Object
Dim value As System.Object
 
value = instance.CreateSplinesByEqnParams(ParamsIn)
C# 
System.object CreateSplinesByEqnParams( 
   System.object ParamsIn
)
C++/CLI 
System.Object^ CreateSplinesByEqnParams( 
&   System.Object^ ParamsIn
) 

Parameters

ParamsIn
Array containing an array of doubles to use in creating the spline (see Remarks)

Return Value

Array containing an array of objects of the newly created splines

Remarks

The parameters are provided as three arrays, which for OLE automation are packed into a single SafeArray, which is packed as follows:

[ Dimension, Order, Number of control Points, Periodicity, knot1, knot2,...,ControlPoint1[Dimension], ControlPoint2[Dimension],... ]

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

NOTE: If the generated spline is a closed spline, then it must be flagged as periodic. Additionally, 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. If your data is not G1 continuous, then you must split the spline into multiple G1 segments and call this method for each segment.

For the OLE interface, you can use the returned object pointer directly to call any APIs on the ISketchSpline interface or its base class, ISketchSegment.

This method does not work with IModelDoc2::SetAddToDB or IModelDoc2::SetDisplayWhenAdded. It always adds the spline directly to the database (as if IModelDoc2::SetAddToDB(True) is in effect), and you must redraw your document window to see the entities that you added (as if IModelDoc2::SetDisplayWhenAdded(false) is in effect).

To create 3D splines, see IModelDoc2::InsertCurveFilePoint and related functions.

 

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:   CreateSplinesByEqnParams 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) 2018 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.