Hide Table of Contents
FeatureRevolve2 Method (IFeatureManager)

Creates a base, boss, or cut revolve feature.

.NET Syntax

Visual Basic (Declaration) 
Function FeatureRevolve2( _
   ByVal SingleDir As System.Boolean, _
   ByVal IsSolid As System.Boolean, _
   ByVal IsThin As System.Boolean, _
   ByVal IsCut As System.Boolean, _
   ByVal ReverseDir As System.Boolean, _
   ByVal BothDirectionUpToSameEntity As System.Boolean, _
   ByVal Dir1Type As System.Integer, _
   ByVal Dir2Type As System.Integer, _
   ByVal Dir1Angle As System.Double, _
   ByVal Dir2Angle As System.Double, _
   ByVal OffsetReverse1 As System.Boolean, _
   ByVal OffsetReverse2 As System.Boolean, _
   ByVal OffsetDistance1 As System.Double, _
   ByVal OffsetDistance2 As System.Double, _
   ByVal ThinType As System.Integer, _
   ByVal ThinThickness1 As System.Double, _
   ByVal ThinThickness2 As System.Double, _
   ByVal Merge As System.Boolean, _
   ByVal UseFeatScope As System.Boolean, _
   ByVal UseAutoSelect As System.Boolean _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim SingleDir As System.Boolean
Dim IsSolid As System.Boolean
Dim IsThin As System.Boolean
Dim IsCut As System.Boolean
Dim ReverseDir As System.Boolean
Dim BothDirectionUpToSameEntity As System.Boolean
Dim Dir1Type As System.Integer
Dim Dir2Type As System.Integer
Dim Dir1Angle As System.Double
Dim Dir2Angle As System.Double
Dim OffsetReverse1 As System.Boolean
Dim OffsetReverse2 As System.Boolean
Dim OffsetDistance1 As System.Double
Dim OffsetDistance2 As System.Double
Dim ThinType As System.Integer
Dim ThinThickness1 As System.Double
Dim ThinThickness2 As System.Double
Dim Merge As System.Boolean
Dim UseFeatScope As System.Boolean
Dim UseAutoSelect As System.Boolean
Dim value As Feature
 
value = instance.FeatureRevolve2(SingleDir, IsSolid, IsThin, IsCut, ReverseDir, BothDirectionUpToSameEntity, Dir1Type, Dir2Type, Dir1Angle, Dir2Angle, OffsetReverse1, OffsetReverse2, OffsetDistance1, OffsetDistance2, ThinType, ThinThickness1, ThinThickness2, Merge, UseFeatScope, UseAutoSelect)
C# 
Feature FeatureRevolve2( 
   System.bool SingleDir,
   System.bool IsSolid,
   System.bool IsThin,
   System.bool IsCut,
   System.bool ReverseDir,
   System.bool BothDirectionUpToSameEntity,
   System.int Dir1Type,
   System.int Dir2Type,
   System.double Dir1Angle,
   System.double Dir2Angle,
   System.bool OffsetReverse1,
   System.bool OffsetReverse2,
   System.double OffsetDistance1,
   System.double OffsetDistance2,
   System.int ThinType,
   System.double ThinThickness1,
   System.double ThinThickness2,
   System.bool Merge,
   System.bool UseFeatScope,
   System.bool UseAutoSelect
)
C++/CLI 
Feature^ FeatureRevolve2( 
&   System.bool SingleDir,
&   System.bool IsSolid,
&   System.bool IsThin,
&   System.bool IsCut,
&   System.bool ReverseDir,
&   System.bool BothDirectionUpToSameEntity,
&   System.int Dir1Type,
&   System.int Dir2Type,
&   System.double Dir1Angle,
&   System.double Dir2Angle,
&   System.bool OffsetReverse1,
&   System.bool OffsetReverse2,
&   System.double OffsetDistance1,
&   System.double OffsetDistance2,
&   System.int ThinType,
&   System.double ThinThickness1,
&   System.double ThinThickness2,
&   System.bool Merge,
&   System.bool UseFeatScope,
&   System.bool UseAutoSelect
) 

Parameters

SingleDir
True if the revolve is in one direction, false if in two directions (see Remarks)
IsSolid
True if this is a solid revolve feature, false if not
IsThin
True if this is a thin revolve feature, false if not
IsCut
True if this is a cut revolve feature, false if not
ReverseDir
True reverses the angle of the revolution, false does not; only applies if Dir1Type is not swEndConditions_e.swEndCondMidPlane
BothDirectionUpToSameEntity
True if the revolve is up to the same entity in both directions, false if not; only applies if SingleDir is false and Dir1Type and Dir2Type are swEndConditions_e.swEndCondUpToVertex, swEndConditions_e.swEndCondUpToSurface, or swEndConditions_e.swEndCondOffsetFromSurface) (see Remarks)
Dir1Type

Revolve end condition as defined in swEndConditions_e

Dir2Type

Revolve end condition in direction 2; as defined in swEndConditions_e and only applies if Dir1Type is not swEndConditions_e.swEndCondMidPlane

Dir1Angle
Angle in radians of revolution in direction 1; only applies if Dir1Type is swEndConditions_e.swEndCondBlind
Dir2Angle
Angle in radians of revolution in direction 2; only applies if Dir2Type is swEndConditions_e.swEndCondBlind
OffsetReverse1
True to reverse the offset direction in direction 1, false to not; only applies if Dir1Type is swEndConditions_e.swEndCondOffsetFromSurface
OffsetReverse2
True to reverse the offset direction in direction 2, false to not; only applies if Dir2Type is swEndConditions_e.swEndCondOffsetFromSurface
OffsetDistance1
Offset distance in direction 1; only applies if Dir1Type is swEndConditions_e.swEndCondOffsetFromSurface
OffsetDistance2
Offset distance in direction 2; only applies if Dir2Type is swEndConditions_e.swEndCondOffsetFromSurface
ThinType
Type and direction as defined in swThinWallType_e
ThinThickness1
Wall thickness in direction 1 (if ThinType is swThinWallType_e.swThinWallMidPlane, (ThinThickness1)/2 is used for each direction)
ThinThickness2
Wall thickness in direction 2 (only applies if ThinType is swThinWallType_e.swThinWallTwoDirection)
Merge
True to merge the results into a multi-body 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 or components that the feature affects (see Remarks)

Return Value

Feature

Example

Remarks

Before calling this method, call IModelDocExtension::SelectByID2 multiple times to select the sketch, axis of revolution, up-to face, up-to plane, or offset-from surface. To select:

  • the axis of revolution, set Mark to 16. To select each successive face, plane, or surface, set Mark to its next bitmask value.
  • one or bodies using feature scope, set Mark to 1 for each body.

If SingleDir is false and the revolve is up to or offset from the same entity in both directions, select the entity once and set BothDirectionUpToSameEntity to true. If you select the same entity for each direction, the second selection negates the first, and the revolve feature is not created.

When UseAutoSel is false, you must call IModelDocExtension::SelectByID2 to select the bodies or components affected by the feature.

NOTE: This method provides enhanced functionality; i.e., additional types of end conditions for the revolve feature, than the now obsolete IFeatureManager::FeatureRevolveCut2IFeatureManager::FeatureRevolveThin, and IFeatureManager::FeatureRevolveThinCut.

 

See Also

Availability

SOLIDWORKS 2011 FCS, Revision Number 19.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:   FeatureRevolve2 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) 2015 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.