Hide Table of Contents
IGetCurveParams2 Method (IEdge)

Returns the curve parameters for this edge, including the edge and curve direction (sense).

.NET Syntax

Visual Basic (Declaration) 
Function IGetCurveParams2() As System.Double
Visual Basic (Usage) 
Dim instance As IEdge
Dim value As System.Double
value = instance.IGetCurveParams2()
System.double IGetCurveParams2()
System.double IGetCurveParams2(); 

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.

  • Example


    Calls to this method must be preceded by a call to IEdge::GetCurve or IEdge::IGetCurve because SOLIDWORKS does not keep the underlying curve information. Edge::GetCurve generates this information so that you can extract the curve parameters.

    You can use the data returned by this method to determine if a circular edge is a complete circle or an arc.

    The return value is the following array of 11 doubles:

    [ StartPtX, StartPtY, StartPtZ, EndPtX, EndPtY, EndPtZ, StartUParam, EndUParam, PackDouble1, PackDouble2, PackDouble3 ]

    where PackDouble1, PackDouble2, and PackDouble3 are each a set of two integers packed into a double. These variables hold the following pair of integers:


    Two packed integers:

    1. Unused

    2. curveType as documented in ICurve::Identity


    Two packed integers:

    1. Unused

    2. curveTag


    Two packed integers:

    1. Unused

    2. SenseFlag (indicates whether the curve and edge are in the same direction)


    If SenseFlag is True, then the curve and edge are in the same direction. If SenseFlag is false, then the curve and edge are in opposite directions. In this case, this method returns the start parameter (point) that corresponds to the end of the edge and the end parameter (point) that corresponds to the end of the edge.

    The start parameter is always smaller than the end parameter. If the curve and edge are in opposite directions, then the start and end parameters are along the negative portion of the parameter space. For example, if the start parameter of the edge is 10 and the end parameter is 5, then the parameter range returned is -10, -5. This ensures that the start parameter is smaller than the end parameter. To correct the values for the edge, swap the two values between the start and end parameters and then negate both values so that the value of the start parameter is 5 and the end parameter is 10.

    If the curve is closed and the curve starts and ends at the same point, then StartUParam and EndUParam are a period apart.


    See Also


    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

    Subject:   Feedback on Help Topics
    Page:   IGetCurveParams2 Method (IEdge)
    *   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:


    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

    Web Help Content Version: API Help (English only) 2017 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.