Hide Table of Contents
InsertBomTable2 Method (IModelDocExtension)

Obsolete. Superseded by IModelDocExtension::InsertBomTable3.

.NET Syntax

Visual Basic (Declaration) 
Function InsertBomTable2( _
   ByVal TemplateName As System.String, _
   ByVal X As System.Integer, _
   ByVal Y As System.Integer, _
   ByVal BomType As System.Integer, _
   ByVal ConfigurationName As System.String, _
   ByVal Hidden As System.Boolean _
) As BomTableAnnotation
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim TemplateName As System.String
Dim X As System.Integer
Dim Y As System.Integer
Dim BomType As System.Integer
Dim ConfigurationName As System.String
Dim Hidden As System.Boolean
Dim value As BomTableAnnotation
value = instance.InsertBomTable2(TemplateName, X, Y, BomType, ConfigurationName, Hidden)
BomTableAnnotation InsertBomTable2( 
   System.string TemplateName,
   System.int X,
   System.int Y,
   System.int BomType,
   System.string ConfigurationName,
   System.bool Hidden
BomTableAnnotation^ InsertBomTable2( 
&   System.String^ TemplateName,
&   System.int X,
&   System.int Y,
&   System.int BomType,
&   System.String^ ConfigurationName,
&   System.bool Hidden


Path and name of BOM table template (see Remarks)
X coordinate for the placement of the BOM table
Y coordinate for the placement of the BOM table
Type of BOM table as defined by swBomType_e
Name of the configuration for this BOM table (see Remarks)
True to hide the BOM table, false to show it

Return Value

BOM table annotation


The system does not default to the Default configuration when you specify an empty string for Configuration. You must specify the configuration.

BOM table templates are in the <SOLIDWORKS_install_dir>\lang\<language> folder and have a filename extension of .sldbomtbt. The template and table must be of the same type. For example, you could specify C:\Program Files\SOLIDWORKS\lang\English\bom-standard.sldbomtbt for TemplateName if you wanted to insert an English-version of the standard BOM table template.

If the BOM table is a parts-only or indented-style BOM and ConfigurationName is invalid, then the BOM is not created.


See Also


SOLIDWORKS 2010 FCS, Revision Number 18.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:   InsertBomTable2 Method (IModelDocExtension)
*   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) 2018 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.