Hide Table of Contents
ExtendSurface Method (IBody2)

Creates a new temporary body by extending the selected edges.

.NET Syntax

Visual Basic (Declaration) 
Function ExtendSurface( _
   ByVal EdgesToExtend As System.Object, _
   ByVal ExtendLinear As System.Boolean, _
   ByVal EndCondition As System.Integer, _
   ByVal Dist As System.Double, _
   ByVal PUpToVtx As Vertex, _
   ByVal PUpToFace As Face _
) As Body2
Visual Basic (Usage) 
Dim instance As IBody2
Dim EdgesToExtend As System.Object
Dim ExtendLinear As System.Boolean
Dim EndCondition As System.Integer
Dim Dist As System.Double
Dim PUpToVtx As Vertex
Dim PUpToFace As Face
Dim value As Body2
value = instance.ExtendSurface(EdgesToExtend, ExtendLinear, EndCondition, Dist, PUpToVtx, PUpToFace)
Body2 ExtendSurface( 
   System.object EdgesToExtend,
   System.bool ExtendLinear,
   System.int EndCondition,
   System.double Dist,
   Vertex PUpToVtx,
   Face PUpToFace
Body2^ ExtendSurface( 
&   System.Object^ EdgesToExtend,
&   System.bool ExtendLinear,
&   System.int EndCondition,
&   System.double Dist,
&   Vertex^ PUpToVtx,
&   Face^ PUpToFace


Array of the selected edges to extend
True to extend the selected edges linearly along the tangent of the face at the edges; false to extend the selected edges in the same direction as the face
  • 0 = Extend selected edges per value specified for Dist
  • 1 = Extend selected edges to PUpToVtx

  • 2 = Extend selected edges to PUpToFace

  • Dist
    Distance by which to extend the selected edges (see Remarks)

    Vertex up to which to extend the selected edges (see Remarks)


    Face up to which to extend the selected edges (see Remarks)

    Return Value

    Pointer to the newly created IBody2 object



    This method supports surface bodies only.

    You can extend the edges by a specified distance or up to a vertex or up to a face.


    See Also


    SOLIDWORKS 2006 FCS, Revision Number 14

    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:   ExtendSurface Method (IBody2)
    *   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.