Hide Table of Contents
ICreateClippedSplines Method (IModelDoc2)

Creates one or more sketch spline segments that are clipped against a given (x1, y1), (x2, y2) rectangle. This rectangle lies in the space of the active 2D sketch.

.NET Syntax

Visual Basic (Declaration) 
Function ICreateClippedSplines( _
   ByRef PropArray As System.Integer, _
   ByRef KnotsArray As System.Double, _
   ByRef CntrlPntCoordArray As System.Double, _
   ByVal X1 As System.Double, _
   ByVal Y1 As System.Double, _
   ByVal X2 As System.Double, _
   ByVal Y2 As System.Double _
) As EnumSketchSegments
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim PropArray As System.Integer
Dim KnotsArray As System.Double
Dim CntrlPntCoordArray As System.Double
Dim X1 As System.Double
Dim Y1 As System.Double
Dim X2 As System.Double
Dim Y2 As System.Double
Dim value As EnumSketchSegments
 
value = instance.ICreateClippedSplines(PropArray, KnotsArray, CntrlPntCoordArray, X1, Y1, X2, Y2)
C# 
EnumSketchSegments ICreateClippedSplines( 
   ref System.int PropArray,
   ref System.double KnotsArray,
   ref System.double CntrlPntCoordArray,
   System.double X1,
   System.double Y1,
   System.double X2,
   System.double Y2
)
C++/CLI 
EnumSketchSegments^ ICreateClippedSplines( 
&   System.int% PropArray,
&   System.double% KnotsArray,
&   System.double% CntrlPntCoordArray,
&   System.double X1,
&   System.double Y1,
&   System.double X2,
&   System.double Y2
) 

Parameters

PropArray

See Remarks

KnotsArray

See Remarks

CntrlPntCoordArray

See Remarks

X1

x component of the lower corner of the clipping rectangle

Y1

y component of the lower corner of the clipping rectangle

X2
x component of the upper corner of the clipping rectang
Y2
y component of the upper corner of the clipping rectang

Return Value

Newly created sketch segments enumeration

Remarks

The rectangle lies in the space of the active 2D sketch. The results are undefined for calls made in an active 3D sketch.

 

The arrays are as follows:

  • PropArray = [ Dimension, Order, NumControlPoints, Periodicity ]

  • KnotsArray = [ NumControlPoints + Order ]

  • CntrlPntCoordArray = [ NumControlPoints * Dimension ]

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

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

 

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:   ICreateClippedSplines 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) 2013 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.