Hide 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


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:  
*   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) 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.