Solid Edge Design Manager Object Library
DeleteRevisionLinkInfo Method
DesignManager ActiveX DLL > Application Object : DeleteRevisionLinkInfo Method
File name from which you would like to delete the links.
Description
This method will delete revision link information from given file.
Syntax
Visual Basic
Public Function DeleteRevisionLinkInfo( _
   ByVal bstrInputFileName As String _
) As Long
Parameters
bstrInputFileName
File name from which you would like to delete the links.
Example
Imports System.Runtime.InteropServices
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim application As DesignManager.Application = Nothing
        Dim strFilePath As String = "C:\SIEM00000008_A.asm"

        Dim objType As Type = Nothing
        Try

            ' Below code will test Design Manager automation

            Try
                application = Marshal.GetActiveObject("DesignManager.Application")
            Catch ex As Exception
                ' Get the type from the Solid Edge ProgID
                objType = Type.GetTypeFromProgID("DesignManager.Application")
                ' Start Solid Edge
                application = Activator.CreateInstance(objType)
            Finally
                ' Make Design Manager visible
                application.Visible = True
            End Try

            application.DeleteRevisionLinkInfo(strFilePath)

        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub
End Class
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
public class Form1
{
    private void Button1_Click(object sender, EventArgs e)
    {
        DesignManager.Application application = null;
        string strFilePath = "C:\\SIEM00000008_A.asm";

        Type objType = null;
        try
        {

            // Below code will test Design Manager automation

            try
            {
                application = (DesignManager.Application)Marshal.GetActiveObject("DesignManager.Application");
            }
            catch (Exception ex)
            {
                // Get the type from the Solid Edge ProgID
                objType = Type.GetTypeFromProgID("DesignManager.Application");
                // Start Solid Edge
                application = Activator.CreateInstance(objType);
            }
            finally
            {
                // Make Design Manager visible
                application.Visible = true;
            }

            application.DeleteRevisionLinkInfo(strFilePath);

        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.ToString());
        }

    }
}
See Also

Application Object  | Application Members