Hide Table of Contents
IGetEdges Method (IFace2)

Get the edges bounding this face.

.NET Syntax

Visual Basic (Declaration) 
Function IGetEdges() As Edge
Visual Basic (Usage) 
Dim instance As IFace2
Dim value As Edge
value = instance.IGetEdges()
Edge IGetEdges()
Edge^ IGetEdges(); 

Return Value

  • in-process, unmanaged C++: Pointer to an array of edges 
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Remarks

    If you want to align the edges with their corresponding trim curves, then call this method immediately following a call to IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2. This causes the order of the trim curves to align with the order of the edges. For Dispatch implementations, use IFace2::GetEdges.

    To elaborate, any call to IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2 stores a temporary buffer containing the edges for this face. If this temporary buffer exists, then IFace2::GetEdges, IFace2::IGetEdges, or IFace2::EnumEdges access the buffer. This is useful when you want to align the trim curves of the face with their corresponding edges. If IFace2::GetEdges, IFace2::IGetEdges, or IFace2::EnumEdges is called immediately after IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2, then the order of the trim curves align with the order of the edges. However, if you are processing all the trim curves and then processing all the edges, your first call to IFace2::EnumEdges uses the temporary buffer of edges generated by your last call to IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2. Because your last call to IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2 and your current call to IFace2::EnumEdges are probably made from different faces, the data does not match. You can see this mismatch of data when IFace2::GetEdgeCount does not match the number of enumerated edges, or when the edge data does not match the examined face. Therefore, call IFace2::GetEdges, IFace2::IGetEdges, or IFace2::EnumEdges in the same loop and immediately after your call to IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2. The temporary buffer of edges is destroyed after each call to IFace2::GetEdges, IFace2::IGetEdges, or IFaces2::EnumEdges.

    If you are using IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2, the number of trim curves on a face might vary from the number of edges on the face. If you call IFace2::EnumEdges immediately after calling IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2, then you are getting a list of edges generated by IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2. Because this list of generated edges might vary from the list of edges that are typically returned from this face, do not use IFace2::GetEdgeCount to determine the length of the enumerated edge list. Instead, use one of the return values from IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2 to determine the size of the enumerated edge list. IFace2::GetTrimCurves2 or IFace2::IGetTrimCurves2 returns the number of trim (SP) curves in the first array position. This is the value you can use to loop through your enumerated list of edges.


    See Also


    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

    Subject:   Feedback on Help Topics
    Page:   IGetEdges Method (IFace2)
    *   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) 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.