Hide Table of Contents
IGetSplineParams2 Method (ISketch)

Obsolete. Superseded by ISketch::IGetSplineParameters3.

.NET Syntax

Visual Basic (Declaration) 
Function IGetSplineParams2() As Double
Visual Basic (Usage) 
Dim instance As ISketch
Dim value As Double
 
value = instance.IGetSplineParams2()
C# 
double IGetSplineParams2()
C++/CLI 
double IGetSplineParams2(); 

Return Value

  • in-process, unmanaged C++: Pointer to an array of doubles (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported
  • See In-process Methods for details about this type of method.

    Remarks

    See ISketch::GetSketchSegments or ISketch::IEnumSketchSegments for access to individual ISketchSegment and ISketchSpline objects.

    The return value is an array of doubles containing data for all the splines in the sketch:

    [ packedDouble1, packedDouble2, ControlPoint1[Dimension elements], ControlPoint2[Dimension elements],... knot1, knot2,..., packedDouble3, packedDouble4, packedDouble5, ]

     

    packedDouble1 and packedDouble2

    The first two array elements for each spline contain four integer values holding information that describes the rest of the data in that spline's parameters:

     

     Spline Element

    Packed Data

    low part

    high part

      0

    Dim

    Order

      1

    nCtrlPoints

    Periodic

     

    where: 

    • Dim is the number of dimensions in which the spline is defined

    • Order is the order of the spline

    • nCtrlPoints is the number of control points

    • Periodic is 1 for a closed spline or 0 for an open spline
       

    ControlPoint#

    The ControlPoint data (in the sketch coordinate system) follows the two packed data elements.

     

    knots#

    The number of knots depends on whether the spline is periodic or not:

     

    Periodic:

    numKnots = nCtrlPoints + 1

    Non-Periodic:

    numKnots = nCtrlPoints + Order

     

     

    packedDouble3, packedDouble4, and packedDouble5

    The last three array elements for each spline contain five integer values holding style and layer information:

     

     Spline Element

    Packed Data

    low part

    high part

      i

    Color

    lineStyle

      i+1

    lineWidth

    Layer

      i+2

    layerOverride

    Not used

     

    where: 

    • i is the index following the last Knot or [2 + numKnots + numControlPointDoubles * Dim]

    • Color is the COLORREF value describing the color used for the ith spline

    • lineStyle is the line style used for the ith spline. Valid values can be found in the swLineStyles_e enumeration

    • lineWidth is line width used for the ith spline. Valid values can be found in the swLineWeights_e enumeration

    • Layer is an integer index to the layer that the ith spline is on

    • layerOverride is integer with bit flags set to determine which properties, if any, have been overridden or should be overridden.

     

    Therefore, the size of the data for each spline is given by:

    2 + numKnots + numControlPointDoubles * Dim + 3

     

    See Also

    Availability

    SolidWorks 2000 FCS, Revision Number 8.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:   IGetSplineParams2 Method (ISketch)
    *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) 2012 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.