Hide Table of Contents
GetConfigurationCount Method (IBomFeature)

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

.NET Syntax

Visual Basic (Declaration) 
Function GetConfigurationCount( _
   ByVal OnlyVisible As System.Boolean _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IBomFeature
Dim OnlyVisible As System.Boolean
Dim value As System.Integer
 
value = instance.GetConfigurationCount(OnlyVisible)
C# 
System.int GetConfigurationCount( 
   System.bool OnlyVisible
)
C++/CLI 
System.int GetConfigurationCount( 
&   System.bool OnlyVisible
) 

Parameters

OnlyVisible
True to get the number of configurations currently displayed in this table, false to get the total number of configurations available in this table

Return Value

Number of configurations in this BOM table or available to this BOM table

Remarks

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 style of the BOM table, use IBomFeature::TableType.

 

If OnlyVisible is...

Then the value returned is...

True

Number of configurations currently shown in the BOM table.

For a top-level only style BOM table, this could be any number from 0 to the total number of configurations available. For the other styles of BOM tables, this value is always 1.

false

Total number of configurations available.

 

To get the configuration names, call IBomFeature::GetConfigurations or IBomFeature::IGetConfigurations.

Call this method before calling IBomFeature::IGetConfigurations to get the number of configurations.

 

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:   GetConfigurationCount 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) 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.