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 System.Double, _
   ByVal TransY As System.Double, _
   ByVal TransZ As System.Double, _
   ByVal TransDist As System.Double, _
   ByVal RotPointX As System.Double, _
   ByVal RotPointY As System.Double, _
   ByVal RotPointZ As System.Double, _
   ByVal RotAngleX As System.Double, _
   ByVal RotAngleY As System.Double, _
   ByVal RotAngleZ As System.Double, _
   ByVal BCopy As System.Boolean, _
   ByVal NumCopies As System.Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim TransX As System.Double
Dim TransY As System.Double
Dim TransZ As System.Double
Dim TransDist As System.Double
Dim RotPointX As System.Double
Dim RotPointY As System.Double
Dim RotPointZ As System.Double
Dim RotAngleX As System.Double
Dim RotAngleY As System.Double
Dim RotAngleZ As System.Double
Dim BCopy As System.Boolean
Dim NumCopies As System.Integer
Dim value As Feature
 
value = instance.InsertMoveCopyBody2(TransX, TransY, TransZ, TransDist, RotPointX, RotPointY, RotPointZ, RotAngleX, RotAngleY, RotAngleZ, BCopy, NumCopies)
C# 
Feature InsertMoveCopyBody2( 
   System.double TransX,
   System.double TransY,
   System.double TransZ,
   System.double TransDist,
   System.double RotPointX,
   System.double RotPointY,
   System.double RotPointZ,
   System.double RotAngleX,
   System.double RotAngleY,
   System.double RotAngleZ,
   System.bool BCopy,
   System.int NumCopies
)
C++/CLI 
Feature^ InsertMoveCopyBody2( 
&   System.double TransX,
&   System.double TransY,
&   System.double TransZ,
&   System.double TransDist,
&   System.double RotPointX,
&   System.double RotPointY,
&   System.double RotPointZ,
&   System.double RotAngleX,
&   System.double RotAngleY,
&   System.double RotAngleZ,
&   System.bool BCopy,
&   System.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

 

NOTE: To add the move/copy body as a sub-feature of a derived part, you must select the move/copy body feature first.

 

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

 

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) 2017 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.