Hide Table of Contents
InsertMoveCopyBody2 Method (IFeatureManager)

Moves, rotates, and makes copies of the selected solid bodies or surfaces.

.NET Syntax

Visual Basic (Declaration) 
Function InsertMoveCopyBody2( _
   ByVal TransX As Double, _
   ByVal TransY As Double, _
   ByVal TransZ As Double, _
   ByVal TransDist As Double, _
   ByVal RotPointX As Double, _
   ByVal RotPointY As Double, _
   ByVal RotPointZ As Double, _
   ByVal RotAngleX As Double, _
   ByVal RotAngleY As Double, _
   ByVal RotAngleZ As Double, _
   ByVal BCopy As Boolean, _
   ByVal NumCopies As Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim TransX As Double
Dim TransY As Double
Dim TransZ As Double
Dim TransDist As Double
Dim RotPointX As Double
Dim RotPointY As Double
Dim RotPointZ As Double
Dim RotAngleX As Double
Dim RotAngleY As Double
Dim RotAngleZ As Double
Dim BCopy As Boolean
Dim NumCopies As Integer
Dim value As Feature
 
value = instance.InsertMoveCopyBody2(TransX, TransY, TransZ, TransDist, RotPointX, RotPointY, RotPointZ, RotAngleX, RotAngleY, RotAngleZ, BCopy, NumCopies)
C# 
Feature InsertMoveCopyBody2( 
   double TransX,
   double TransY,
   double TransZ,
   double TransDist,
   double RotPointX,
   double RotPointY,
   double RotPointZ,
   double RotAngleX,
   double RotAngleY,
   double RotAngleZ,
   bool BCopy,
   int NumCopies
)
C++/CLI 
Feature^ InsertMoveCopyBody2( 
&   double TransX,
&   double TransY,
&   double TransZ,
&   double TransDist,
&   double RotPointX,
&   double RotPointY,
&   double RotPointZ,
&   double RotAngleX,
&   double RotAngleY,
&   double RotAngleZ,
&   bool BCopy,
&   int NumCopies
) 

Parameters

TransX
Value for delta X; applies to translation
TransY
Value for delta Y; applies to translation
TransZ
Value for delta Z; applies to translation
TransDist
Distance ; applies to translation
RotPointX
Value for X rotation origin; applies to rotation
RotPointY
Value for Y rotation origin; applies to rotation
RotPointZ
Value for Z rotation origin; applies to rotation
RotAngleX
Value for X rotation angle; applies to rotation
RotAngleY
Value for Y rotation angle; applies to rotation
RotAngleZ
Value for Z rotation angle; applies to rotation
BCopy
True if a copy operation, false if a move operation
NumCopies
Number of copies to create

Return Value

Pointer to the IFeature object

Example

Remarks

This method applies either to the specified translation or rotation. If you specify both translation and rotation, only the translation is applied.

 

This method requires selecting the body, surface, edge, and vertex using these marks:

 

Selection

Mark

Body or surface

1

Rotation edge, vertex, coordinate system

2

Translation edge, vertex, coordinate system

4

Translation vertex

8

 

 

See IModelDocExtension::SelectByID2 for details on selecting and marking bodies, surfaces, edges, vertices, and coordinate systems.

 

See the Insert, Surface, Move/Copy command in the SolidWorks Help for details about moving, rotating, and copying solid bodies and surfaces.

 

See Also

Availability

SolidWorks 2003 SP3, Revision Number 11.3


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