Hide Table of Contents
ReorderComponents Method (IAssemblyDoc)

Moves components to a different location in the FeatureManager design tree.

.NET Syntax

Visual Basic (Declaration) 
Function ReorderComponents( _
   ByVal Source As System.Object, _
   ByVal Target As System.Object, _
   ByVal Where As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim Source As System.Object
Dim Target As System.Object
Dim Where As System.Integer
Dim value As System.Boolean
 
value = instance.ReorderComponents(Source, Target, Where)
C# 
System.bool ReorderComponents( 
   System.object Source,
   System.object Target,
   System.int Where
)
C++/CLI 
System.bool ReorderComponents( 
&   System.Object^ Source,
&   System.Object^ Target,
&   System.int Where
) 

Parameters

Source
Array of components to move
Target

Target component or folder to which to move the components

Where

Where to move the components as defined in swReorderComponentsWhere_e

Return Value

True if the components are moved, false if not

Example

Remarks

The Source argument contains the components to reorder in the FeatureManager design tree.

 

The order of the elements in the array will be the order that the components appear after the reorder occurs. The components can only be moved within the same component of the model; you cannot move a component from a subassembly into the top-level assembly.

 

The Where argument indicates where the Source should be moved relative to the Target as defined by swReorderComponentsWhere_e. If the target is not a folder feature, then this method takes no action and returns false. Only folders that occur within the components section of the assembly FeatureManager design tree can be used; a folder that is among the body features will not be accepted. If the Where argument is specified as one of the two folder-related values, but the Target is a component, the method uses swReorderCompentsWhere_e.swReorderComponents_After.

 

See Also

Availability

SOLIDWORKS 2007 SP2, Revision Number 15.2


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:   ReorderComponents 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) 2018 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.