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