Hide Table of Contents
CreateSpline2 Method (ISketchManager)

Creates a spline passing through the specified points.

.NET Syntax

Visual Basic (Declaration) 
Function CreateSpline2( _
   ByVal PointData As Object, _
   ByVal SimulateNaturalEnds As Boolean _
) As SketchSegment
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim PointData As Object
Dim SimulateNaturalEnds As Boolean
Dim value As SketchSegment
 
value = instance.CreateSpline2(PointData, SimulateNaturalEnds)
C# 
SketchSegment CreateSpline2( 
   object PointData,
   bool SimulateNaturalEnds
)
C++/CLI 
SketchSegment^ CreateSpline2( 
&   Object^ PointData,
&   bool SimulateNaturalEnds
) 

Parameters

PointData
Array of X,Y,Z point coordinates to use in creating the spline (see Remarks)
SimulateNaturalEnds
True to simulate natural ends, false to not simulate natural ends

Return Value

Sketch segment for the spline

Remarks

This method creates a spline in the active 2D sketch. If a sketch is not active, then a new sketch is created. Use ISketchManager::ActiveSketch to check if the sketch active.

The PointData array is a set of, at least, two X, Y, Z values. The X value for the start point of the spline is PointData[0], the Y value for the start point is PointData[1], and the Z value for the start point is PointData[2]. The X value for the next point is PointData[3], and so on.

This method does not work with ISketchManager::AddToDB or ISketchManager::DisplayWhenAdded. It always adds the spline directly to the database (as if ISketchManager::AddToDB(True) was in effect), and you must redraw your document window to see the entities that you added (as if ISketchManager::DisplayWhenAdded(False) was in effect).

In 2D sketches, SolidWorks ignores the Z value in PointData.

 

See Also

Availability

SolidWorks 2009 FCS, Revision Number 17.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:   CreateSpline2 Method (ISketchManager)
*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) 2010 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.