Solid Edge Revision Manager Object Library
Open Method
Specifies the filename (including Path) of a previously saved file to open.
Specifies if the file is to be opened as a read-only file. The default value is set to False. If the value is set to True, the file will be opened as read-only.
Description
Open a file's property sets.
Syntax
Visual Basic
Public Function Open( _
   ByVal FileName As String, _
   Optional ByVal OpenReadOnly As Variant _
) As Long
Parameters
FileName
Specifies the filename (including Path) of a previously saved file to open.
OpenReadOnly
Specifies if the file is to be opened as a read-only file. The default value is set to False. If the value is set to True, the file will be opened as read-only.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

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

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

            objPropertySets = objApplication.PropertySets
            objPropertySets.Open("C:\Part1.par", True)
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objPropertySets Is Nothing) Then
                Marshal.ReleaseComObject(objPropertySets)
                objPropertySets = 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

IPropertySetsAuto Collection  | IPropertySetsAuto Members

Send comments on this topic.