Solid Edge Assembly Type Library
RetrieveHoleLocation Method
Description
Retrieves the construction surfaces representing the hole locations from the cross section component file. These surfaces can be used to create holes as per the standard at appropriate locations in the frames.
Syntax
Visual Basic
Public Sub RetrieveHoleLocation() 
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objAssemblyDocument As SolidEdgeAssembly.AssemblyDocument = Nothing
        Dim objOccurrences As SolidEdgeAssembly.Occurrences = Nothing
        Dim objOccurrence As SolidEdgeAssembly.Occurrence = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objAssemblyDocument = objApplication.ActiveDocument
            objOccurrences = objAssemblyDocument.Occurrences

            For Each objOccurrence In objOccurrences
                objOccurrence.RetrieveHoleLocation()
            Next

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

Occurrence Object  | Occurrence Members  | Solid Edge ST3 - What's New