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
See Also
Availability
SolidWorks 2009 FCS, Revision Number 17.0