Hide Table of Contents
InsertPunchTable Method (IView)

Inserts a punch table in the flat pattern drawing view of a sheet metal part.

.NET Syntax

Visual Basic (Declaration) 
Function InsertPunchTable( _
   ByVal UseAnchorPoint As System.Boolean, _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal AnchorType As System.Integer, _
   ByVal StartValue As System.String, _
   ByVal TableTemplate As System.String _
) As PunchTableAnnotation
Visual Basic (Usage) 
Dim instance As IView
Dim UseAnchorPoint As System.Boolean
Dim X As System.Double
Dim Y As System.Double
Dim AnchorType As System.Integer
Dim StartValue As System.String
Dim TableTemplate As System.String
Dim value As PunchTableAnnotation
 
value = instance.InsertPunchTable(UseAnchorPoint, X, Y, AnchorType, StartValue, TableTemplate)
C# 
PunchTableAnnotation InsertPunchTable( 
   System.bool UseAnchorPoint,
   System.double X,
   System.double Y,
   System.int AnchorType,
   System.string StartValue,
   System.string TableTemplate
)
C++/CLI 
PunchTableAnnotation^ InsertPunchTable( 
&   System.bool UseAnchorPoint,
&   System.double X,
&   System.double Y,
&   System.int AnchorType,
&   System.String^ StartValue,
&   System.String^ TableTemplate
) 

Parameters

UseAnchorPoint
If true, and the sheet format anchor point exists, then insert table at the anchor point; if false, then insert the table at the location specified by the X and Y parameters
X
X coordinate for the anchor of this punch table
Y
Y coordinate for the anchor of this punch table
AnchorType
Anchor type as defined by swBomConfigurationAnchorType_e
StartValue
Starting value for datum tags; a letter from A to Z, if TableTemplate uses letter tags; a positive integer, if TableTemplate uses number tags (see Remarks)
TableTemplate
Path and filename of the table template that corresponds to the type of table you want to use (see Remarks)

Return Value

IPunchTableAnnotation

Example

Remarks

Punch tables contain information about the punches that are created by forming tools in sheet metal parts. This method inserts a punch table with the following information for pre-selected punches:

Column Description
TAG Datum tag added to each punch in the flat pattern view
PUNCH ID Property of the forming tool or library feature
X Location Distance from the x-axis to the point of insertion of the forming tool in the flat pattern view
Y Location Distance from the y-axis to the point of insertion of the forming tool in the flat pattern view
ANGLE Angle between the x-axis and the forming tool
QUANTITY Number of times that the punch occurs in the flat pattern view

The locations of the datum tags are relative to a datum origin that is pre-selected in the view.

Before calling this method, call IModelDocExtension::SelectByID2 to select the datum origin, punch edges, and punch faces (for multiple punches) as follows:

Selection

Mark

Datum origin vertex

1
Punch edges and faces

2

Datum origin x-axis direction reference

4

Datum origin y-axis direction reference

8

Specify TableTemplate using a punch table template (*.sldpuntbt) in install_dir\lang\language.

Specify a StartValue that matches the table you want to create. For example, to insert a punch table with letter tags, specify a StartValue with a letter from A to Z. 

 

See Also

Availability

SOLIDWORKS 2012 FCS, Revision Number 20.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:   InsertPunchTable Method (IView)
*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.