> IReorderComponents Method (IAssemblyDoc)
Welcome
Getting Started
SolidWorks API Help
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show 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 Integer, _
   ByRef Source As Component2, _
   ByVal Target As Object, _
   ByVal Where As Integer _
) As Boolean
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim Count As Integer
Dim Source As Component2
Dim Target As Object
Dim Where As Integer
Dim value As Boolean
 
value = instance.IReorderComponents(Count, Source, Target, Where)
C# 
bool IReorderComponents( 
   int Count,
   ref Component2 Source,
   object Target,
   int Where
)
C++/CLI 
bool IReorderComponents( 
&   int Count,
&   Component2^% Source,
&   Object^ Target,
&   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


Related SolidWorks Forum Content

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

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document 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.