Solid Edge Part Type Library
HoleData Object
Members 
Description
Contains the characteristics of an associated Hole object.
Object Model
HoleData ObjectApplication ObjectSelectSet CollectionAddIns CollectionApplication ObjectApplicationEvents ObjectApplicationV8DocumentOpenEvent ObjectApplicationWindowEvents ObjectBeforeFileSaveAsEvents ObjectCommand ObjectCustomization ObjectDocuments CollectionEnvironments CollectionFeatureLibraryEvents ObjectFileUIEvents ObjectMatTable ObjectInsight ObjectNewFileUIEvents ObjectApplication ObjectSEECEvents ObjectSESPEvents ObjectShortcutMenuEvents ObjectSolidEdgeInsightXT ObjectSolidEdgeTCE ObjectWindows Collection
Remarks
These characteristics include the hole type (for example, countersunk), thread depth, treatment type, and so forth. The HoleData object is created through the HoleDataCollection object.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDocument As SolidEdgePart.PartDocument = Nothing
        Dim objHoleDataCollection As SolidEdgePart.HoleDataCollection = Nothing
        Dim objHoleData As SolidEdgePart.HoleData = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objPartDocument = objApplication.ActiveDocument
            objHoleDataCollection = objPartDocument.HoleDataCollection

            For Each objHoleData In objHoleDataCollection
                Console.WriteLine(objHoleData.Name)
            Next

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub

End Module
See Also

HoleData Members