Solid Edge Revision Manager Object Library
GetRevisedFrom Method
Specifies the URL path of the input document.
Specifies the URL path of the document from which the queried document was revised.
Description
This method returns the previous document name of the input document name.
Syntax
Visual Basic
Public Function GetRevisedFrom( _
   ByVal RevisedDocumentName As String, _
   ByRef RevisedFromDocument As String _
) As Long
Parameters
RevisedDocumentName
Specifies the URL path of the input document.
RevisedFromDocument
Specifies the URL path of the document from which the queried document was revised.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim RevisedDocumentName As String
        Dim RevisedFromDocument As String = String.Empty

        Try
            ' Start Revision Manager.
            objApplication = New RevisionManager.Application

            ' Get reference to Insight object.
            objInsight = objApplication.Insight

            RevisedDocumentName = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit-1.par"

            objInsight.GetRevisedFrom(RevisedDocumentName, RevisedFromDocument)
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objInsight Is Nothing) Then
                Marshal.ReleaseComObject(objInsight)
                objInsight = 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

Insight Object  | Insight Members

Send comments on this topic.