Solid Edge File Properties Object Library
Open Method
Description
Open a file's property sets
Syntax
Visual Basic
Public Sub Open( _
   ByVal FileName As String, _
   Optional ByVal OpenReadOnly As Variant _
) 
Parameters
FileName
OpenReadOnly
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objPropertySets As SolidEdgeFileProperties.PropertySets = Nothing

        Try
            ' Create a new instance of PropertySets.
            objPropertySets = New SolidEdgeFileProperties.PropertySets
            objPropertySets.Open("C:\Part1.par", True)
            objPropertySets.Close()
        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
        End Try
    End Sub

End Module
See Also

IJPropertySets Collection  | IJPropertySets Members