Hide Table of Contents
IReorderComponents Method (IAssemblyDoc)

Moves components to a different location in the FeatureManager tree.

.NET Syntax

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

Parameters

Count
Number of items in the Source array
Source
Array of the components to move
Target
Target component or folder feature to which to move the components
Where
Where to move the components as defined in swReorderComponentsWhere_e

Return Value

True if the components were moved, false if not

Remarks

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

 

The order of the items 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 a feature, but not a folder feature, this method takes no action and returns false. Only folders that occur within the components section of the Assembly FeatureManager 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 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:   IReorderComponents 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) 2015 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.