Hide Table of Contents
CreateClippedSplines 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 CreateClippedSplines( _
   ByVal ParamsIn As System.Object, _
   ByVal X1 As System.Double, _
   ByVal Y1 As System.Double, _
   ByVal X2 As System.Double, _
   ByVal Y2 As System.Double _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim ParamsIn As System.Object
Dim X1 As System.Double
Dim Y1 As System.Double
Dim X2 As System.Double
Dim Y2 As System.Double
Dim value As System.Object
 
value = instance.CreateClippedSplines(ParamsIn, X1, Y1, X2, Y2)
C# 
System.object CreateClippedSplines( 
   System.object ParamsIn,
   System.double X1,
   System.double Y1,
   System.double X2,
   System.double Y2
)
C++/CLI 
System.Object^ CreateClippedSplines( 
&   System.Object^ ParamsIn,
&   System.double X1,
&   System.double Y1,
&   System.double X2,
&   System.double Y2
) 

Parameters

ParamsIn

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 rectangle

Y2

y component of the upper corner of the clipping rectangle

Return Value

Array of newly created sketch segments

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 ParamsIn argument in Visual Basic for Applications (VBA) is a SafeArray of size (4 + numKnots + numControlPointDoubles) as follows:

[ Dimension, Order, NumControlPoints, Periodicity, knot1, knot2,..., ControlPoint1[Dimension], ControlPoint2[Dimension],... ]

where:

Dimension, Order, NumControlPoints, and Periodicity are integer values.

The size of the knot array is determined by ( NumControlPoints + Order ).

The size of the control point array is based upon the curve dimension:

  • 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.

 

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:   CreateClippedSplines 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) 2014 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.