Hide Table of Contents
ModifyKnot Method (ISketchSpline)

Modifies the specified interior knot of this sketch spline.

.NET Syntax

Visual Basic (Declaration) 
Function ModifyKnot( _
   ByVal Index As System.Integer, _
   ByVal DKnot As System.Double _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISketchSpline
Dim Index As System.Integer
Dim DKnot As System.Double
Dim value As System.Boolean
 
value = instance.ModifyKnot(Index, DKnot)
C# 
System.bool ModifyKnot( 
   System.int Index,
   System.double DKnot
)
C++/CLI 
System.bool ModifyKnot( 
&   System.int Index,
&   System.double DKnot
) 

Parameters

Index
1-based index of the interior knot to modify (see Remarks)
DKnot
Knot value

Return Value

True if knot successfully modifed, false if not

Example

Remarks

Interior knots occur after the first set of 0s and before the last set of 1s in the knot array. If the knot array is [ 0 0 0 0 0.279240779943874 0.55 0.720759220056126 1 1 1 1 ], then the interior knots are 0.279240779943874, 0.55, and 0.720759220056126.

Before calling this method, call ISplineParamData::GetKnotPoints and ISplineParamData::KnotPointsCount to help specify Index and the new knot value.

After calling this method, you must call IModelDoc2::ForceRebuild3 to update the sketch.

 

See Also

Availability

SOLIDWORKS 2018 FCS, Revision Number 26.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:   ModifyKnot Method (ISketchSpline)
*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.