Hide Table of Contents
InsertBomTable Method (IModelDocExtension)

Obsolete. Superseded by IModelDocExtension::InsertBomTable2.

.NET Syntax

Visual Basic (Declaration) 
Function InsertBomTable( _
   ByVal TemplateName As String, _
   ByVal X As Integer, _
   ByVal Y As Integer, _
   ByVal BomType As Integer, _
   ByVal ConfigurationName As String _
) As BomTableAnnotation
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim TemplateName As String
Dim X As Integer
Dim Y As Integer
Dim BomType As Integer
Dim ConfigurationName As String
Dim value As BomTableAnnotation
 
value = instance.InsertBomTable(TemplateName, X, Y, BomType, ConfigurationName)
C# 
BomTableAnnotation InsertBomTable( 
   string TemplateName,
   int X,
   int Y,
   int BomType,
   string ConfigurationName
)
C++/CLI 
BomTableAnnotation^ InsertBomTable( 
&   String^ TemplateName,
&   int X,
&   int Y,
&   int BomType,
&   String^ ConfigurationName
) 

Parameters

TemplateName
Path and name of BOM table template (see Remarks)
X
X coordinate for the placement of the BOM table
Y
Y coordinate for the placement of the BOM table
BomType
Type of BOM table as defined by swBomType_e
ConfigurationName
Name of the configuration for this BOM table (see Remarks)

Return Value

BOM table annotation

Example

Remarks

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

By default, the BOM table templates are in the <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

Availability

SolidWorks 2009 FCS, Revision Number 17.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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   InsertBomTable Method (IModelDocExtension)
*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) 2012 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.