Hide Table of Contents
InsertHoleTable2 Method (IView)

Inserts a hole table in this drawing view.

.NET Syntax

Visual Basic (Declaration) 
Function InsertHoleTable2( _
   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 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 StartValue As System.String
Dim TableTemplate As System.String
Dim value As HoleTableAnnotation
 
value = instance.InsertHoleTable2(UseAnchorPoint, X, Y, AnchorType, StartValue, TableTemplate)
C# 
HoleTableAnnotation InsertHoleTable2( 
   System.bool UseAnchorPoint,
   System.double X,
   System.double Y,
   System.int AnchorType,
   System.string StartValue,
   System.string TableTemplate
)
C++/CLI 
HoleTableAnnotation^ InsertHoleTable2( 
&   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 in meters for the anchor of this hole table
Y

Y coordinate in meters for the anchor of this hole 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 table you want to use (see Remarks)

Return Value

Hole table annotation

Example

Remarks

This method inserts a table with the following information for selected holes:

  • Datum tag
  • X-location of hole center
  • Y-location of hole center
  • Size

This method displays datum tags next to holes that have been pre-selected in the view. The location of the datum tags is relative to a datum origin that is also pre-selected in the view.

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

Selection

Mark

Datum origin vertex 1
Hole edges and faces

2

Datum origin x axis direction reference

4

Datum origin y axis direction reference

8

Specify TableTemplate using a hole table template (*.sldholtbt) in install_dir\lang\language.

Specify a TableTemplate and StartValue that matches the table you want to create. For example, to insert a hole table with letter tags, specify TableTemplate using install_dir\lang\English\standard hole table--letters.sldholtbt and specify StartValue using a letter from A to Z. 

 

See Also

Availability

SolidWorks 2011 SP02, Revision 19.2


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:   InsertHoleTable2 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) 2013 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.