Hide Table of Contents
ActiveConfiguration Property (IConfigurationManager)

Gets the active configuration.

.NET Syntax

Visual Basic (Declaration) 
ReadOnly Property ActiveConfiguration As Configuration
Visual Basic (Usage) 
Dim instance As IConfigurationManager
Dim value As Configuration
value = instance.ActiveConfiguration
Configuration ActiveConfiguration {get;}
property Configuration^ ActiveConfiguration {
   Configuration^ get();

Property Value

Pointer to the IConfiguration object



If this document is an assembly, then you could use this property to begin your traversal of the assembly components by making a subsequent call to IConfiguration::GetRootComponent or IConfiguration::IGetRootComponent2.


An IComponent2 object is based on the currently active configuration; one assembly configuration might suppress the component, while another might display it. Therefore, your traversal of IComponent2 objects might vary if you switch to a different configuration.

You should use this method of assembly traversal to replace previous calls to the Member class.


The order of calls used in a typical assembly traversal is:

  1. IConfigurationManager::ActiveConfiguration (called only once)
  2. IConfiguration::GetRootComponent or IConfiguration::IGetRootComponent2 (called only once)
  3. IComponent2::GetChildren or IComponent::IGetChildren. (called recursively)

From the SOLIDWORKS API, the IConfiguration and IComponent2 objects provide access to all the child components, their transforms, their bodies, as seen in a specific assembly configuration. The component body objects and component transforms can vary based on the configuration; therefore, you should traverse components for each configuration.

You can use IComponent2::GetBody on each assembly component to get the body of each component with the hole feature that was applied in this configuration. If you switch to a configuration without the assembly-level hole and re-traverse the component objects, then IComponent2::IGetBody returns the body object without the hole feature.

See Also


SOLIDWORKS 2005 FCS, Revision Number 13.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

Subject:   Feedback on Help Topics
Page:   ActiveConfiguration Property (IConfigurationManager)
*   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:


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

Web Help Content Version: API Help (English only) 2016 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.