Solid Edge Revision Manager Object Library
MoveAllDocumentsThroughWorkFlow Method
Specifies the URL path of the file to move.
Member of the DocumentStatus constant set that specifies the new status of the file set.
Description
This method moves the specified file and all of its associated drafts and revisions to the specified status.
Syntax
Visual Basic
Public Function MoveAllDocumentsThroughWorkFlow( _
   ByVal FileName As String, _
   ByVal newstatus As DocumentStatus _
) As Long
Parameters
FileName
Specifies the URL path of the file to move.
newstatus
ValueDescription
igStatusAvailable 
igStatusBaselined 
igStatusInReview 
igStatusInWork 
igStatusObsolete 
igStatusReleased 
Member of the DocumentStatus constant set that specifies the new status of the file set.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim strFileName As String
        Dim DocumentStatus As RevisionManager.DocumentStatus

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

            ' Get reference to Insight object.
            objInsight = objApplication.Insight

            strFileName = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Shifter Assembly.asm"
            DocumentStatus = DocumentStatus.igStatusInReview

            objInsight.MoveAllDocumentsThroughWorkFlow(strFileName, DocumentStatus)
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objInsight Is Nothing) Then
                Marshal.ReleaseComObject(objInsight)
                objInsight = 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

Insight Object  | Insight Members

Send comments on this topic.