Hide Table of Contents
InsertSweepSurface2 Method (IFeatureManager)

Obsolete. Superseded by IFeatureManager::InsertSweepSurface3.

.NET Syntax

Visual Basic (Declaration) 
Function InsertSweepSurface2( _
   ByVal Propagate As System.Boolean, _
   ByVal TwistCtrlOption As System.Short, _
   ByVal KeepTangency As System.Boolean, _
   ByVal BAdvancedSmoothing As System.Boolean, _
   ByVal StartMatchingType As System.Short, _
   ByVal EndMatchingType As System.Short, _
   ByVal PathAlign As System.Short, _
   ByVal UseFeatScope As System.Boolean, _
   ByVal UseAutoSelect As System.Boolean, _
   ByVal TwistAngle As System.Double, _
   ByVal BMergeSmoothFaces As System.Boolean _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim Propagate As System.Boolean
Dim TwistCtrlOption As System.Short
Dim KeepTangency As System.Boolean
Dim BAdvancedSmoothing As System.Boolean
Dim StartMatchingType As System.Short
Dim EndMatchingType As System.Short
Dim PathAlign As System.Short
Dim UseFeatScope As System.Boolean
Dim UseAutoSelect As System.Boolean
Dim TwistAngle As System.Double
Dim BMergeSmoothFaces As System.Boolean
Dim value As Feature
 
value = instance.InsertSweepSurface2(Propagate, TwistCtrlOption, KeepTangency, BAdvancedSmoothing, StartMatchingType, EndMatchingType, PathAlign, UseFeatScope, UseAutoSelect, TwistAngle, BMergeSmoothFaces)
C# 
Feature InsertSweepSurface2( 
   System.bool Propagate,
   System.short TwistCtrlOption,
   System.bool KeepTangency,
   System.bool BAdvancedSmoothing,
   System.short StartMatchingType,
   System.short EndMatchingType,
   System.short PathAlign,
   System.bool UseFeatScope,
   System.bool UseAutoSelect,
   System.double TwistAngle,
   System.bool BMergeSmoothFaces
)
C++/CLI 
Feature^ InsertSweepSurface2( 
&   System.bool Propagate,
&   System.short TwistCtrlOption,
&   System.bool KeepTangency,
&   System.bool BAdvancedSmoothing,
&   System.short StartMatchingType,
&   System.short EndMatchingType,
&   System.short PathAlign,
&   System.bool UseFeatScope,
&   System.bool UseAutoSelect,
&   System.double TwistAngle,
&   System.bool BMergeSmoothFaces
) 

Parameters

Propagate
True propagates the sweep to the next edge, false causes the sweep to occur only on the selected edge; to propagate to the next edge, the next edge must be tangent to the current edge
TwistCtrlOption

Twist control option 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

PathAlign
Align path type (see Remarks)
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 set to swTwistControlType_e.swTwistControlConstantTwistAlongPath, then specify end twist angle
BMergeSmoothFaces
True to merge smooth faces, false to not

Return Value

Pointer to the IFeature object

Remarks

Because you are creating a surface, the sections can be open.

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 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.

 

See Also

Availability

SOLIDWORKS 2005 FCS, Revision Number 13.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:   InsertSweepSurface2 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) 2018 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.