Hide Table of Contents
InsertHoleTable Method (IView)

Obsolete. Superseded by IView::InsertHoleTable2.

.NET Syntax

Visual Basic (Declaration) 
Function InsertHoleTable( _
   ByVal UseAnchorPoint As System.Boolean, _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal AnchorType As System.Integer, _
   ByVal TableTemplate As System.String _
) As HoleTableAnnotation
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 TableTemplate As System.String
Dim value As HoleTableAnnotation
value = instance.InsertHoleTable(UseAnchorPoint, X, Y, AnchorType, TableTemplate)
HoleTableAnnotation InsertHoleTable( 
   System.bool UseAnchorPoint,
   System.double X,
   System.double Y,
   System.int AnchorType,
   System.string TableTemplate
HoleTableAnnotation^ InsertHoleTable( 
&   System.bool UseAnchorPoint,
&   System.double X,
&   System.double Y,
&   System.int AnchorType,
&   System.String^ TableTemplate



If True and the appropriate sheet format anchor point exists, then insert table at this point; if false, then use the values specified for the X and Y arguments as the insertion point

X coordinate for the placement of this hole table

Y coordinate for the placement of this hole table


Anchor type as defined by swBomConfigurationAnchorType_e


Path and filename of the template that you want to use that corresponds to this type of table (see Remarks)

Return Value

Hole table annotation


This method requires ordered preselection of various entities:

  • datum = 1

  • hole = 2

  • x axis = 4

  • y axis = 8

See IModelDocExtension::SelectByID2 for details.

By default, the hole table templates are in the <install_dir>\lang\<language> folder and have a filename extension of .sldholtbt. The template and table must be of the same type. For example, you could specify C:\Program Files\SOLIDWORKS\lang\English\standard hole table--letters.sldholetbt for TableTemplate if you wanted to insert an English-version of the standard hole letters table template.


See Also


SOLIDWORKS 2004 FCS, Revision Number 12.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:   InsertHoleTable Method (IView)
*   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) 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.