Hide Table of Contents
GetConfigurations Method (IBomFeature)

Gets the configurations available to this BOM table or used in this BOM table.

.NET Syntax

Visual Basic (Declaration) 
Function GetConfigurations( _
   ByVal OnlyVisible As System.Boolean, _
   ByRef Visible As System.Object _
) As System.Object
Visual Basic (Usage) 
Dim instance As IBomFeature
Dim OnlyVisible As System.Boolean
Dim Visible As System.Object
Dim value As System.Object
 
value = instance.GetConfigurations(OnlyVisible, Visible)
C# 
System.object GetConfigurations( 
   System.bool OnlyVisible,
   out System.object Visible
)
C++/CLI 
System.Object^ GetConfigurations( 
&   System.bool OnlyVisible,
&   [Out] System.Object^ Visible
) 

Parameters

OnlyVisible
True to get the names of configurations currently displayed in this table, false to get the names of configurations available to this table
Visible
Array of BOOLEANs indicating the visibility of the configurations

Return Value

Array of strings of the names of the configurations

Example

Remarks

Although this method works on all styles of BOM tables (top-level only, parts-only, indented subassemblies), it is only necessary for top-level only style tables.  For the other style tables, where only a single configuration is shown at a time, using IBomFeature::Configuration is simpler and more efficient.

The view associated with this BOM can contain a model with multiple configurations. For a top-level only style BOM table, there can be several Quantity columns, each showing the results for a different configuration.  For the other styles of BOM tables, only a particular configuration can be shown in the table, and that configuration can be changed. To determine the BOM table style, use the IBomFeature::TableType property.

 

If OnlyVisible is...

Then Names contains the names of...

And Visible...

True

Only the configurations currently shown in the BOM table.  

For a top-level only style BOM table, this could be any number of configurations. For the other styles of BOM tables, it is one configuration name.

Can be passed in as NULL.

If it is passed in as non-NULL, the array contains True for all items.

False

All configurations available.

Contains BOOLEANs that correspond to each item in Names indicating if that particular configuration is shown in the BOM table or not.

 

To get the number of configurations, use IBomFeature::GetConfigurationCount.

To set the configurations, use IBomFeature::SetConfigurations.

 

See Also

Availability

SOLIDWORKS 2004 FCS, Revision Number 12


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:   GetConfigurations Method (IBomFeature)
*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) 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.