Hide Table of Contents
InsertHoleTable3 Method (IView)

Inserts a hole table in this drawing view.

.NET Syntax

Visual Basic (Declaration) 
Function InsertHoleTable3( _
   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 Template As System.String, _
   ByVal TagOrder As System.Integer, _
   ByVal TagType As System.Integer, _
   ByVal ManualTags As System.Object _
) As System.Object
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 Template As System.String
Dim TagOrder As System.Integer
Dim TagType As System.Integer
Dim ManualTags As System.Object
Dim value As System.Object
 
value = instance.InsertHoleTable3(UseAnchorPoint, X, Y, AnchorType, StartValue, Template, TagOrder, TagType, ManualTags)
C# 
System.object InsertHoleTable3( 
   System.bool UseAnchorPoint,
   System.double X,
   System.double Y,
   System.int AnchorType,
   System.string StartValue,
   System.string Template,
   System.int TagOrder,
   System.int TagType,
   System.object ManualTags
)
C++/CLI 
System.Object^ InsertHoleTable3( 
&   System.bool UseAnchorPoint,
&   System.double X,
&   System.double Y,
&   System.int AnchorType,
&   System.String^ StartValue,
&   System.String^ Template,
&   System.int TagOrder,
&   System.int TagType,
&   System.Object^ ManualTags
) 

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 the specified TagType
Template

Path and filename of the hole table template that corresponds to the hole table you want to create (see Remarks)

TagOrder
Tag numbering as defined in swHoleTableTagOrder_e
TagType
Tag type as defined in swHoleTableTagStyle_e
ManualTags
Array of custom tags; valid only if TagType is swHoleTableTagStyle_e.swHoleTable_ManualTags

Return Value

Hole table annotation

Example

Remarks

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

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

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 Template using a hole table template (*.sldholtbt):

  • in install_dir\lang\language.
  • that matches the table you want to create. For example, to insert a hole table with letter tags, specify Template using install_dir\lang\English\standard hole table--letters.sldholtbt.
 

See Also

Availability

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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   InsertHoleTable3 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) 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.