Solid Edge Revision Manager Object Library
Open Method
Specifies the filename (including Path) of a previously saved file to open.
Member of the RevisionRuleType constant set that specifies a revision rule for the operation.
Specifies whether to stop the Open operation if the rule specified by RevisionRuleOption is not applicable. When set to true, the operation stops.
Description
Opens a specified document.
Syntax
Visual Basic
Public Function Open( _
   ByVal FileName As String, _
   Optional ByVal RevisionRuleOption As Variant, _
   Optional ByVal StopFileOpenIfRevisionRuleNotApplicable As Variant _
) As Object
Parameters
FileName
Specifies the filename (including Path) of a previously saved file to open.
RevisionRuleOption
Member of the RevisionRuleType constant set that specifies a revision rule for the operation.
StopFileOpenIfRevisionRuleNotApplicable
Specifies whether to stop the Open operation if the rule specified by RevisionRuleOption is not applicable. When set to true, the operation stops.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

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

        Try
            ' Start Revision Manager.
            objApplication = New RevisionManager.Application
            objDocument = objApplication.Open("C:\Part1.par")
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            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

IRMgrApp Object  | IRMgrApp Members