Hide Table of Contents
InsertProtrusionSwept4 Method (IFeatureManager)

Inserts a swept boss or base feature using a profile and sweep curves.

.NET Syntax

Visual Basic (Declaration) 
Function InsertProtrusionSwept4( _
   ByVal Propagate As System.Boolean, _
   ByVal Alignment As System.Boolean, _
   ByVal TwistCtrlOption As System.Integer, _
   ByVal KeepTangency As System.Boolean, _
   ByVal BAdvancedSmoothing As System.Boolean, _
   ByVal StartMatchingType As System.Integer, _
   ByVal EndMatchingType As System.Integer, _
   ByVal IsThinBody As System.Boolean, _
   ByVal Thickness1 As System.Double, _
   ByVal Thickness2 As System.Double, _
   ByVal ThinType As System.Integer, _
   ByVal PathAlign As System.Integer, _
   ByVal Merge As System.Boolean, _
   ByVal UseFeatScope As System.Boolean, _
   ByVal UseAutoSelect As System.Boolean, _
   ByVal TwistAngle As System.Double, _
   ByVal BMergeSmoothFaces As System.Boolean, _
   ByVal CircularProfile As System.Boolean, _
   ByVal CircularProfileDiameter As System.Double, _
   ByVal Direction As System.Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim Propagate As System.Boolean
Dim Alignment As System.Boolean
Dim TwistCtrlOption As System.Integer
Dim KeepTangency As System.Boolean
Dim BAdvancedSmoothing As System.Boolean
Dim StartMatchingType As System.Integer
Dim EndMatchingType As System.Integer
Dim IsThinBody As System.Boolean
Dim Thickness1 As System.Double
Dim Thickness2 As System.Double
Dim ThinType As System.Integer
Dim PathAlign As System.Integer
Dim Merge As System.Boolean
Dim UseFeatScope As System.Boolean
Dim UseAutoSelect As System.Boolean
Dim TwistAngle As System.Double
Dim BMergeSmoothFaces As System.Boolean
Dim CircularProfile As System.Boolean
Dim CircularProfileDiameter As System.Double
Dim Direction As System.Integer
Dim value As Feature
 
value = instance.InsertProtrusionSwept4(Propagate, Alignment, TwistCtrlOption, KeepTangency, BAdvancedSmoothing, StartMatchingType, EndMatchingType, IsThinBody, Thickness1, Thickness2, ThinType, PathAlign, Merge, UseFeatScope, UseAutoSelect, TwistAngle, BMergeSmoothFaces, CircularProfile, CircularProfileDiameter, Direction)
C# 
Feature InsertProtrusionSwept4( 
   System.bool Propagate,
   System.bool Alignment,
   System.int TwistCtrlOption,
   System.bool KeepTangency,
   System.bool BAdvancedSmoothing,
   System.int StartMatchingType,
   System.int EndMatchingType,
   System.bool IsThinBody,
   System.double Thickness1,
   System.double Thickness2,
   System.int ThinType,
   System.int PathAlign,
   System.bool Merge,
   System.bool UseFeatScope,
   System.bool UseAutoSelect,
   System.double TwistAngle,
   System.bool BMergeSmoothFaces,
   System.bool CircularProfile,
   System.double CircularProfileDiameter,
   System.int Direction
)
C++/CLI 
Feature^ InsertProtrusionSwept4( 
&   System.bool Propagate,
&   System.bool Alignment,
&   System.int TwistCtrlOption,
&   System.bool KeepTangency,
&   System.bool BAdvancedSmoothing,
&   System.int StartMatchingType,
&   System.int EndMatchingType,
&   System.bool IsThinBody,
&   System.double Thickness1,
&   System.double Thickness2,
&   System.int ThinType,
&   System.int PathAlign,
&   System.bool Merge,
&   System.bool UseFeatScope,
&   System.bool UseAutoSelect,
&   System.double TwistAngle,
&   System.bool BMergeSmoothFaces,
&   System.bool CircularProfile,
&   System.double CircularProfileDiameter,
&   System.int Direction
) 

Parameters

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; thus, it cannot break through the two end faces of the body

TwistCtrlOption
Twist control options as defined in 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 in swTangencyType_e
EndMatchingType
Tangency type as defined in 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 in swThinWallType_e
PathAlign
Align path type (see Remarks)
Merge
True to merge the results in a multibody part, false to not
UseFeatScope
True if the feature only affects selected bodies, false if the feature affects all bodies
UseAutoSelect
True to automatically select all bodies and have the feature affect those bodies, false to select the bodies the feature affects (see Remarks)
TwistAngle
If TwistCtrlOption is swTwistControlType_e.swTwistControlConstantTwistAlongPath, then specify end twist angle
BMergeSmoothFaces
True to merge smooth faces, false to not
CircularProfile
True to use a circular profile, false to use the selected sketch profile or solid body
CircularProfileDiameter
If CircularProfile is true, then specify the diameter of the circular profile
Direction
Direction as defined in swSweepDirection_e (see Remarks)

Return Value

Feature

Example

Remarks

Use IModelDocExtension::SelectByID2 to select the sketch profile and sweep curves. Specify these marks:

  • 1 = Sketch profile

  • 2 = Guide curve, if provided

  • 4 = Sweep path

The PathAlign argument is available when TwistCtrlOption is set to swTwistControlType_e.swTwistControlFollowPath 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

When UseAutoSelect is false, the user must select the bodies that the feature will affect.

 

Direction only applies to sketch profiles and only when the sketch profile is not coincident with an end of the path.

 

See Also

Availability

SOLIDWORKS 2017 FCS, Revision Number 25.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:   InsertProtrusionSwept4 Method (IFeatureManager)
*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.