Solid Edge Design Manager Object Library
Open Method
DesignManager ActiveX DLL > Application Object : 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
Option Infer On

Imports System
Imports System.Runtime.InteropServices

Namespace Examples
    Friend Class Program
        <STAThread>
        Shared Sub Main(ByVal args() As String)
            Dim application As DesignManager.Application = Nothing
            Dim document As DesignManager.Document = Nothing

            Try
                application = New DesignManager.Application()
                document = CType(application.Open("C:\Part1.par"), DesignManager.Document)
            Catch ex As System.Exception
                Console.WriteLine(ex)
            End Try
        End Sub
    End Class
End Namespace
using System;
using System.Runtime.InteropServices;

namespace Examples
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            DesignManager.Application application = null;
            DesignManager.Document document = null;

            try
            {
                application = new DesignManager.Application();
                document = (DesignManager.Document)application.Open(@"C:\Part1.par");
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    }
}
See Also

Application Object  | Application Members