Hide Table of Contents
CreateRuledSurfaceFromEdge Method (IModeler)

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

.NET Syntax

Visual Basic (Declaration) 
Function CreateRuledSurfaceFromEdge( _
   ByVal ModDoc As ModelDoc2, _
   ByVal Edges As System.Object, _
   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 System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IModeler
Dim ModDoc As ModelDoc2
Dim Edges As System.Object
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 System.Object
Dim value As System.Integer
 
value = instance.CreateRuledSurfaceFromEdge(ModDoc, Edges, Type, Length, FlipPullDir, FlipDir, TrimAndSew, Angle, CoordInput, X, Y, Z, BConnectSurface, RuledSurface)
C# 
System.int CreateRuledSurfaceFromEdge( 
   ModelDoc2 ModDoc,
   System.object 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 System.object RuledSurface
)
C++/CLI 
System.int CreateRuledSurfaceFromEdge( 
&   ModelDoc2^ ModDoc,
&   System.Object^ 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] System.Object^ RuledSurface
) 

Parameters

ModDoc
Model document in which to create surface body
Edges

Array of edges on which to create ruled surface

NOTE: Currently only a single edge is supported.

Type
  • 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

    FlipPullDir

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

    FlipDir

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

    TrimAndSew

    True to trim and knit the surface, false to not

    Angle

    Angle for Tapered to Vector type only

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

    x coordinate

    Y
    y coordinate
    Z

    z coordinate

    BConnectSurface

    True to remove any connecting surfaces, false to not

    RuledSurface
    Ruled surface body

    Return Value

    0 if ruled surface body created, -1 if not

    Example

    Remarks

    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

    Availability

    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

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