Hide Table of Contents
CreateSweptBody Method (IModeler)

Creates a swept body.

.NET Syntax

Visual Basic (Declaration) 
Function CreateSweptBody( _
   ByVal PModDoc As ModelDoc2, _
   ByVal Propagate As Boolean, _
   ByVal Alignment As Boolean, _
   ByVal TwistCtrlOption As Short, _
   ByVal KeepTangency As Boolean, _
   ByVal BAdvancedSmoothing As Boolean, _
   ByVal StartMatchingType As Short, _
   ByVal EndMatchingType As Short, _
   ByVal IsThinBody As Boolean, _
   ByVal Thickness1 As Double, _
   ByVal Thickness2 As Double, _
   ByVal ThinType As Short, _
   ByVal PathAlign As Short, _
   ByVal TwistAngle As Double, _
   ByVal BMergeSmoothFaces As Boolean _
) As Body2
Visual Basic (Usage) 
Dim instance As IModeler
Dim PModDoc As ModelDoc2
Dim Propagate As Boolean
Dim Alignment As Boolean
Dim TwistCtrlOption As Short
Dim KeepTangency As Boolean
Dim BAdvancedSmoothing As Boolean
Dim StartMatchingType As Short
Dim EndMatchingType As Short
Dim IsThinBody As Boolean
Dim Thickness1 As Double
Dim Thickness2 As Double
Dim ThinType As Short
Dim PathAlign As Short
Dim TwistAngle As Double
Dim BMergeSmoothFaces As Boolean
Dim value As Body2
 
value = instance.CreateSweptBody(PModDoc, Propagate, Alignment, TwistCtrlOption, KeepTangency, BAdvancedSmoothing, StartMatchingType, EndMatchingType, IsThinBody, Thickness1, Thickness2, ThinType, PathAlign, TwistAngle, BMergeSmoothFaces)
C# 
Body2 CreateSweptBody( 
   ModelDoc2 PModDoc,
   bool Propagate,
   bool Alignment,
   short TwistCtrlOption,
   bool KeepTangency,
   bool BAdvancedSmoothing,
   short StartMatchingType,
   short EndMatchingType,
   bool IsThinBody,
   double Thickness1,
   double Thickness2,
   short ThinType,
   short PathAlign,
   double TwistAngle,
   bool BMergeSmoothFaces
)
C++/CLI 
Body2^ CreateSweptBody( 
&   ModelDoc2^ PModDoc,
&   bool Propagate,
&   bool Alignment,
&   short TwistCtrlOption,
&   bool KeepTangency,
&   bool BAdvancedSmoothing,
&   short StartMatchingType,
&   short EndMatchingType,
&   bool IsThinBody,
&   double Thickness1,
&   double Thickness2,
&   short ThinType,
&   short PathAlign,
&   double TwistAngle,
&   bool BMergeSmoothFaces
) 

Parameters

PModDoc
Model document
Propagate
True propagates the swept protrusion to the next tangent edge, false does not
Alignment
True causes the swept protrusion to go through the end faces if the curve used for the sweep goes from one face to another or from one edge to another, false causes the swept protrusion to begin and end perpendicular to the sweep curve and it cannot break through the two end faces of the body
TwistCtrlOption
Twist control options as defined by swTwistControlType_e
KeepTangency
If the sweep section has tangent segments, then True to cause the corresponding surfaces in the resulting sweep to be tangent, false to not
BAdvancedSmoothing
If the sweep section has circular or elliptical arcs, then True to approximate the sections and smooth the surfaces, false to not
StartMatchingType
Tangency type as defined by swTangencyType_e
EndMatchingType
Tangency type as defined by swTangencyType_e
IsThinBody
True if this feature is a thin body, false if not
Thickness1
Thickness value for the first direction
Thickness2
Thickness value for the second direction
ThinType
Thin wall type as defined by swThinWallType_e
PathAlign
Align path type (see Remarks)
TwistAngle
If TwistCtrlOption set to swTwistControlConstantTwistAlongPath, then specify end twist angle
BMergeSmoothFaces
True to merge smooth faces, false to not

Return Value

Swept body

Remarks

Use IModelDocExtension::SelectByID2 to select the profile and sweep curves. The mark for:

  • 1 = Profile selection

  • 2 = Guide curve selection, if provided

  • 4 = Sweep path

The PathAlign argument is available when twistCtrlOption is set to 0 (follow path) and can take one of these values:

  • 0 = None; no correction (default)

  • 2 = Direction vector; a plane, planar face, or line defines the path

  • 3 = All faces; includes neighboring faces

 

See Also

Availability

SolidWorks 2006 FCS, Revision Number 14.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:   CreateSweptBody 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.