Hide Table of Contents
ICreateRuledSurfaceFromEdge Method (IModeler)

Creates a ruled surface using the specified edges and returns a surface body.

.NET Syntax

Visual Basic (Declaration) 
Function ICreateRuledSurfaceFromEdge( _
   ByVal ModDoc As ModelDoc2, _
   ByVal NumOfEdges As System.Integer, _
   ByRef Edges As Edge, _
   ByVal Type As System.Integer, _
   ByVal Length As System.Double, _
   ByVal FlipPullDir As System.Boolean, _
   ByVal FlipDir As System.Boolean, _
   ByVal TrimAndSew As System.Boolean, _
   ByVal Angle As System.Double, _
   ByVal CoordInput As System.Boolean, _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal Z As System.Double, _
   ByVal BConnectSurface As System.Boolean, _
   ByRef RuledSurface As Body2 _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IModeler
Dim ModDoc As ModelDoc2
Dim NumOfEdges As System.Integer
Dim Edges As Edge
Dim Type As System.Integer
Dim Length As System.Double
Dim FlipPullDir As System.Boolean
Dim FlipDir As System.Boolean
Dim TrimAndSew As System.Boolean
Dim Angle As System.Double
Dim CoordInput As System.Boolean
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim BConnectSurface As System.Boolean
Dim RuledSurface As Body2
Dim value As System.Integer
value = instance.ICreateRuledSurfaceFromEdge(ModDoc, NumOfEdges, Edges, Type, Length, FlipPullDir, FlipDir, TrimAndSew, Angle, CoordInput, X, Y, Z, BConnectSurface, RuledSurface)
System.int ICreateRuledSurfaceFromEdge( 
   ModelDoc2 ModDoc,
   System.int NumOfEdges,
   ref Edge Edges,
   System.int Type,
   System.double Length,
   System.bool FlipPullDir,
   System.bool FlipDir,
   System.bool TrimAndSew,
   System.double Angle,
   System.bool CoordInput,
   System.double X,
   System.double Y,
   System.double Z,
   System.bool BConnectSurface,
   out Body2 RuledSurface
System.int ICreateRuledSurfaceFromEdge( 
&   ModelDoc2^ ModDoc,
&   System.int NumOfEdges,
&   Edge^% Edges,
&   System.int Type,
&   System.double Length,
&   System.bool FlipPullDir,
&   System.bool FlipDir,
&   System.bool TrimAndSew,
&   System.double Angle,
&   System.bool CoordInput,
&   System.double X,
&   System.double Y,
&   System.double Z,
&   System.bool BConnectSurface,
&   [Out] Body2^ RuledSurface


Model document in which to create surface body
Number of edges on which to create ruled surface

Array of edges on which to create ruled surface

NOTE: Currently only a single edge is supported.

  • 0 = Tangent to Surface

  • 1 = Normal to Surface

  • 2 = Tapered to Vector

  • 3 = Perpendicular to Vector

  • 4 = Sweep

  • Length

    Distance at which to create the surface; valid for Tangent to Surface, Tapered to Vector, Perpendicular to Vector, and Sweep types only


    True to flip the pull direction, false to not; valid for Normal to Surface and Tapered to Vector types only


    True to flip the direction, false to not; valid for Perpendicular to Vector type only


    True to trim and knit the surface, false to not


    Angle for Tapered to Vector type only

    True to enable coordinate input, false if not; for Sweep type only

    x coordinate

    y coordinate

    z coordinate


    True to remove any connecting surfaces, false to not

    Ruled surface body

    Return Value

    0 if ruled surface body created, -1 if not


    This method returns a surface body, unlike IFeatureManager::InsertRuledSurfaceFromEdge2, which returns a feature.

    If you select an edge with a selection mark of 4, the default face is used.  If you select an edge with a selection mark of 6, the alternate face is used.


    See Also


    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

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