Solid Edge Revision Manager Object Library
LinkedDocuments Property
Description
This read-only property returns the LinkedDocuments object for the referenced Document object.
Property type
Read-only property
Syntax
Visual Basic
Public Property LinkedDocuments( _
   Optional ByVal LinkTypeOption As Variant _
) As Object
Parameters
LinkTypeOption
Remarks
Note that the data accessible through the properties and methods of the LinkedDocuments object returned by this method is initialized when the object is created. To view different types of links within a document, create a new LinkedDocuments object, passing in the appropriate LinkTypeOption each time.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objDocument As RevisionManager.Document = Nothing
        Dim objLinkedDocuments As RevisionManager.LinkedDocuments = Nothing

        Try
            ' Start Revision Manager.
            objApplication = New RevisionManager.Application
            objDocument = objApplication.Open("C:\Part1.par")
            objLinkedDocuments = objDocument.LinkedDocuments
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objLinkedDocuments Is Nothing) Then
                Marshal.ReleaseComObject(objLinkedDocuments)
                objLinkedDocuments = Nothing
            End If
            If Not (objDocument Is Nothing) Then
                Marshal.ReleaseComObject(objDocument)
                objDocument = Nothing
            End If
            If Not (objApplication Is Nothing) Then
                objApplication.Quit()
                Marshal.ReleaseComObject(objApplication)
                objApplication = Nothing
            End If
        End Try
    End Sub

End Module
See Also

Document Object  | Document Members