> InsertMoveFace2 Method (IFeatureManager)
Welcome
Getting Started
SolidWorks API Help
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show Table of Contents
InsertMoveFace2 Method (IFeatureManager)

Moves the selected faces on a solid or surface model.

.NET Syntax

Visual Basic (Declaration) 
Function InsertMoveFace2( _
   ByVal MoveType As Integer, _
   ByVal ReverseDir As Boolean, _
   ByVal Angle As Double, _
   ByVal Distance As Double, _
   ByVal TranslationParams As Object, _
   ByVal RotationParams As Object _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim MoveType As Integer
Dim ReverseDir As Boolean
Dim Angle As Double
Dim Distance As Double
Dim TranslationParams As Object
Dim RotationParams As Object
Dim value As Feature
 
value = instance.InsertMoveFace2(MoveType, ReverseDir, Angle, Distance, TranslationParams, RotationParams)
C# 
Feature InsertMoveFace2( 
   int MoveType,
   bool ReverseDir,
   double Angle,
   double Distance,
   object TranslationParams,
   object RotationParams
)
C++/CLI 
Feature^ InsertMoveFace2( 
&   int MoveType,
&   bool ReverseDir,
&   double Angle,
&   double Distance,
&   Object^ TranslationParams,
&   Object^ RotationParams
) 

Parameters

MoveType
Type of move:
  • 0 = Offset

  • 1 = Translate

  • 2 = Rotate

ReverseDir
True to reverse the direction, false to not
Angle

If MoveType is Rotate, then specify the angle at which to draft the faces

Distance

Distance to offset or translate the faces

TranslationParams
Array of three doubles for the delta x, delta y, and delta z direction translation
RotationParams

Array of six doubles:

  • First three doubles are the x, y, and z rotation origin
  • Last three doubles are the x, y, and z rotation angle

Return Value

Pointer to the IFeature object

Example

Remarks

Use the following marks with IModelDocExtension::SelectByID2:

  • 1 = face

  • 2 = direction reference (plane, planar face, linear edge, or reference axis) for translate

  • 4 = axis reference (linear edge or reference axis) for rotate

If you specify a value for TranslationParms or RotationParams, then do not specify a value for Distance or Angle, respectively. The translation or rotation parameters are calculated internally when Distance or Angle is specified.

 

See Also

Availability

SolidWorks 2010 FCS, Revision Number 18.0


Related SolidWorks Forum Content

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:   InsertMoveFace2 Method (IFeatureManager)
*Comment:  
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) 2012 SP05

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document API Help (English only) 2012 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.