Hide Table of Contents
InsertBendTable Method (IPartDoc)

Creates a bend table annotation for the flat pattern of this sheet metal part.

.NET Syntax

Visual Basic (Declaration) 
Function InsertBendTable( _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal StartValue As System.String, _
   ByVal TableTemplate As System.String _
) As System.Object
Visual Basic (Usage) 
Dim instance As IPartDoc
Dim X As System.Double
Dim Y As System.Double
Dim StartValue As System.String
Dim TableTemplate As System.String
Dim value As System.Object
value = instance.InsertBendTable(X, Y, StartValue, TableTemplate)
System.object InsertBendTable( 
   System.double X,
   System.double Y,
   System.string StartValue,
   System.string TableTemplate
System.Object^ InsertBendTable( 
&   System.double X,
&   System.double Y,
&   System.String^ StartValue,
&   System.String^ TableTemplate


X-coordinate for placement of the bend table
Y-coordinate for placement of the bend table
Starting datum tag; a value from A to Z for letter tags; a positive integer for number tags

Full pathname of the template (e.g., install_dir\lang\language\bendtable-standard.sldbndtbt)

Return Value





'1. Ensure the specified part and table template exist.
'2. Run the macro.
'3. Inserts a bend table annotation for the flat pattern.
'4. Inspect the graphics area and the Immediate window.


Dim swApp As SldWorks.SldWorks
Dim myBendTableAnno As SldWorks.BendTableAnnotation
Dim myBendTable As SldWorks.BendTable
Dim Part As SldWorks.ModelDoc2
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Option Explicit
Sub main()

Set swApp = Application.SldWorks
Set Part = swApp.OpenDoc6("C:\Users\Public\Documents\SOLIDWORKS\SOLIDWORKS 2019\samples\tutorial\api\SMGussetAPI.SLDPRT", 1, 0, "", longstatus, longwarnings)
swApp.ActivateDoc2 "SMGussetAPI.SLDPRT", False, longstatus
Set Part = swApp.ActiveDoc

Set myBendTableAnno = Part.InsertBendTable(-4.06616963665726E-02, 6.09432383467686E-02, "A", "install_dir\lang\english\bendtable-standard.sldbndtbt")
Set myBendTable = myBendTableAnno.BendTable
Debug.Print "Tag style of the bend table as defined in swBendTableTagStyle_e: " & myBendTable.TagStyle

End Sub


See Also


SOLIDWORKS 2019 FCS, Revision Number 27.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:   InsertBendTable Method (IPartDoc)
*   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) 2019 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.