Hide Table of Contents
IMirrorComponents Method (IAssemblyDoc)

Mirrors the specified components in this assembly.

.NET Syntax

Visual Basic (Declaration) 
Function IMirrorComponents( _
   ByVal Plane As Object, _
   ByVal InstanceCount As Integer, _
   ByRef ComponentsToInstance As Component2, _
   ByVal MirrorCount As Integer, _
   ByRef ComponentsToMirror As Component2, _
   ByVal NameCount As Integer, _
   ByRef MirroredComponentFilenames As String, _
   ByVal RecreateMates As Boolean, _
   ByVal ComponentModifier As Integer, _
   ByVal ComponentNameModifier As String, _
   ByVal MirroredFileLocation As String, _
   ByVal CopyCustomProperties As Boolean _
) As Component2
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim Plane As Object
Dim InstanceCount As Integer
Dim ComponentsToInstance As Component2
Dim MirrorCount As Integer
Dim ComponentsToMirror As Component2
Dim NameCount As Integer
Dim MirroredComponentFilenames As String
Dim RecreateMates As Boolean
Dim ComponentModifier As Integer
Dim ComponentNameModifier As String
Dim MirroredFileLocation As String
Dim CopyCustomProperties As Boolean
Dim value As Component2
 
value = instance.IMirrorComponents(Plane, InstanceCount, ComponentsToInstance, MirrorCount, ComponentsToMirror, NameCount, MirroredComponentFilenames, RecreateMates, ComponentModifier, ComponentNameModifier, MirroredFileLocation, CopyCustomProperties)
C# 
Component2 IMirrorComponents( 
   object Plane,
   int InstanceCount,
   ref Component2 ComponentsToInstance,
   int MirrorCount,
   ref Component2 ComponentsToMirror,
   int NameCount,
   ref string MirroredComponentFilenames,
   bool RecreateMates,
   int ComponentModifier,
   string ComponentNameModifier,
   string MirroredFileLocation,
   bool CopyCustomProperties
)
C++/CLI 
Component2^ IMirrorComponents( 
&   Object^ Plane,
&   int InstanceCount,
&   Component2^% ComponentsToInstance,
&   int MirrorCount,
&   Component2^% ComponentsToMirror,
&   int NameCount,
&   String^% MirroredComponentFilenames,
&   bool RecreateMates,
&   int ComponentModifier,
&   String^ ComponentNameModifier,
&   String^ MirroredFileLocation,
&   bool CopyCustomProperties
) 

Parameters

Plane
Plane or planar face about which to mirror the components
InstanceCount
Number of instances of the components to mirror
ComponentsToInstance
Array of instances of the component to mirror
MirrorCount
Number of components to mirror
ComponentsToMirror
Array of components to mirror
NameCount
Number of filenames for the newly created mirrored assemblies or parts
MirroredComponentFilenames
Array of filenames for the newly created mirrored assemblies or parts
RecreateMates
True to preserve any mates between the selected components if more than one component is to be mirrored, false to not
ComponentModifier
Prefix or suffix for the newly mirrored components if MirroredComponentFilenames is not specified, as defined by swMirrorComponentNameModifier_e
ComponentNameModifier
String to add to the prefix or suffix of the name of the newly mirrored components if MirroredComponentFilenames is not specified
MirroredFileLocation
Name of the folder where to store the file of the newly created mirrored components
CopyCustomProperties
True to copy the custom properties from the selected components to the mirrored components, false to not

Return Value

  • in-process, unmanaged C++: Pointer to an array of newly created components
  • VBA, VB.NET, C#, and C++/CLI: Not supported

     

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

     

    See Also

    Availability

    SolidWorks 2008 FCS, Revision Number 16.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:   IMirrorComponents Method (IAssemblyDoc)
    *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.