Hide Table of Contents
ISetConfigurations Method (IBomFeature)

Sets the configurations used in this BOM table.

.NET Syntax

Visual Basic (Declaration) 
Function ISetConfigurations( _
   ByVal OnlyVisible As System.Boolean, _
   ByVal Count As System.Integer, _
   ByRef Visible As System.Boolean, _
   ByRef Names As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IBomFeature
Dim OnlyVisible As System.Boolean
Dim Count As System.Integer
Dim Visible As System.Boolean
Dim Names As System.String
Dim value As System.Boolean
 
value = instance.ISetConfigurations(OnlyVisible, Count, Visible, Names)
C# 
System.bool ISetConfigurations( 
   System.bool OnlyVisible,
   System.int Count,
   ref System.bool Visible,
   ref System.string Names
)
C++/CLI 
System.bool ISetConfigurations( 
&   System.bool OnlyVisible,
&   System.int Count,
&   System.bool% Visible,
&   System.String^% Names
) 

Parameters

OnlyVisible
Indicator of the contents of the arrays (see Remarks)
Count

Number of items in Visible and Names

Visible
  • in-process, unmanaged C++: Pointer to an array of Booleans indicating the visibility of the configurations
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Names
    • in-process, unmanaged C++: Pointer to an array of strings of the names of the configurations
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Return Value

    True if configurations are set, false if not

    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.

    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.

     

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