Hide Table of Contents
SetConfigurations Method (IBomFeature)

Sets the configurations used in this BOM table.

.NET Syntax

Visual Basic (Declaration) 
Function SetConfigurations( _
   ByVal OnlyVisible As System.Boolean, _
   ByVal Visible As System.Object, _
   ByVal Names As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IBomFeature
Dim OnlyVisible As System.Boolean
Dim Visible As System.Object
Dim Names As System.Object
Dim value As System.Boolean
 
value = instance.SetConfigurations(OnlyVisible, Visible, Names)
C# 
System.bool SetConfigurations( 
   System.bool OnlyVisible,
   System.object Visible,
   System.object Names
)
C++/CLI 
System.bool SetConfigurations( 
&   System.bool OnlyVisible,
&   System.Object^ Visible,
&   System.Object^ Names
) 

Parameters

OnlyVisible
Indicator of the contents of the arrays (see Remarks)
Visible
Array of Booleans indicating the visibility of the configurations
Names
Array of strings of the names of the configurations

Return Value

True if configurations are set, false if not

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.

NOTE: If the Restrict top-level only BOMs to one configuration option on the Document Properties > Tables > Bill of Materials dialog or IModelDocExtension::GetUserPreferenceToggle(swUserPreferenceToggle_e.swOneConfigOnlyTopLevelBom) returns true, then only the active or default configuration of the drawing view is inserted in the BOM.

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 or nothing.

If it is passed in as non-null or non-nothing, then 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.

 

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:   SetConfigurations 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) 2017 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.