Hide Table of Contents
IInsertMoveFace2 Method (IFeatureManager)

Moves the selected faces on a solid or surface model.

.NET Syntax

Visual Basic (Declaration) 
Function IInsertMoveFace2( _
   ByVal MoveType As System.Integer, _
   ByVal ReverseDir As System.Boolean, _
   ByVal Angle As System.Double, _
   ByVal Distance As System.Double, _
   ByRef TranslationParams As System.Double, _
   ByRef RotationParams As System.Double _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim MoveType As System.Integer
Dim ReverseDir As System.Boolean
Dim Angle As System.Double
Dim Distance As System.Double
Dim TranslationParams As System.Double
Dim RotationParams As System.Double
Dim value As Feature
value = instance.IInsertMoveFace2(MoveType, ReverseDir, Angle, Distance, TranslationParams, RotationParams)
Feature IInsertMoveFace2( 
   System.int MoveType,
   System.bool ReverseDir,
   System.double Angle,
   System.double Distance,
   ref System.double TranslationParams,
   ref System.double RotationParams
Feature^ IInsertMoveFace2( 
&   System.int MoveType,
&   System.bool ReverseDir,
&   System.double Angle,
&   System.double Distance,
&   System.double% TranslationParams,
&   System.double% RotationParams


Type of move:
  • 0 = Offset

  • 1 = Translate

  • 2 = Rotate

True to reverse the direction, false to not

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


Distance to offset or translate the faces

  • in-process, unmanaged C++: Pointer to an array three doubles for delta x, delta y, and delta z direction translation
  • VBA, VB.NET, C#, and C++/CLI: Not supported

      See In-process Methods for details about this type of method.

    • RotationParams
      • in-process, unmanaged C++: Pointer to an array six doubles:
        • first three doubles are the x, y, and z rotation origin
        • last three doubles are the x, y, and z rotation angle
    • VBA, VB.NET, C#, and C++/CLI: Not supported

        See In-process Methods for details about this type of method.

      • Return Value

        Pointer to the IFeature object


        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


        SolidWorks 2010 FCS, Revision Number 18.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

        Subject:   Feedback on Help Topics
        Page:   IInsertMoveFace2 Method (IFeatureManager)
        *   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:


        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

        Web Help Content Version: API Help (English only) 2013 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.