StructureEditor Namespace
Open Method
Specifies the item id of the document to be opened.
Specifies the revision of the document to be opened.
Specifies the name of the document to be opened.
Specifies the revision rule to be applied on the document.
This parameter should be NULL.
Description
This API is used to open a solid edge file from the teamcenter server into structure editor.
Syntax
Visual Basic
Public Function Open( _
   ByVal bstrItemId As String, _
   ByVal bstrItemRev As String, _
   ByVal bstrDataSetFileName As String, _
   ByVal bstrRevisionRule As String, _
   ByVal bstrFolderName As String _
) As Long
Parameters
bstrItemId
Specifies the item id of the document to be opened.
bstrItemRev
Specifies the revision of the document to be opened.
bstrDataSetFileName
Specifies the name of the document to be opened.
bstrRevisionRule
Specifies the revision rule to be applied on the document.
bstrFolderName
This parameter should be NULL.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As StructureEditor.Application = Nothing
        Dim objStructureEditor As StructureEditor.SEECStructureEditor = Nothing
        Dim strItemId As String
        Dim strItemRev As String
        Dim strFileName As String
        Dim strRevisionRule As String
        Dim strFolderName As String

        Try
            OleMessageFilter.Register()

            ' Start structure editor application
            objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("StructureEditor.Application"))
            objStructureEditor = objApplication.SEECStructureEditor
            objApplication.Visible = True

            strItemId = "081691"
            strItemRev = "A"
            strFileName = "a.asm"
            strRevisionRule = "Latest Working"
            strFolderName = ""
            objStructureEditor.Open(strItemId, strItemRev, strFileName, strRevisionRule, strFolderName)

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            If Not objApplication Is Nothing Then
                ' Kill the instance of structure editor created
                objApplication.Quit()
            End If

            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

ISEECStructureEditor Object  | ISEECStructureEditor Members